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
'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type.
Major help is needed customizing the Windows 7 default user profile
Auto file move and rename
Microsoft Information Store stalling issues
Query not inserting rows into table
return double array in Delphi call to c++
Return a Char at position
Access 2007, form datasheet view, change display property of an element based on another element in the record
SQL Problem
Trouble with Menu Drop Down Form