Microsoft
Software
Hardware
Network
Question : Error message when execute Macro
Hi Experts,
I need Experts help. When I run Macro2 “Sub CompileData()”, the error message pop-up as:
“subscript out of range” at this line:
“If ISEXIST(Sheets(CStr(wksNam
e)).UsedRa
nge.Column
s("a:b").V
alue, MySheets(i) & ";" & CLng(rCell”
Hope Experts could help me to rectify this error. Attached the workbook for Experts perusal.
Attachments:
ReportTest.xls
(149 KB)
(File Type Details)
xls
Answer : Error message when execute Macro
Hi,
replace
Sheets(CStr(wksName))
with
Sheets(CStr(Trim(wksName))
)
wherever in the code
Kris
Random Solutions
SBS 2008 hangs on crcdisk.sys
Scimore Embedded in VB 6
Changing hte ip address of the Symantec Endpoint Protection Server
printmig.exe aborting early
Tablespace
Can't boot up my XP system to safe mode, why?
interpreting C++ code into VB.NET
Send Mail Using gmail pop3 in VB.Net
Check validity before record is saved or edited on a form
Need a "quiz" application that saves to a database