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
Ajax Installation
Mouse slow in Google Chrome after attempted XP sp3 update
FILTERING EXCEL DATA USING VALUES FROM 2ND WORKSHEET
How can you search e-mail within Outlook 2010 and not use the index?
Access VBA Word merge
Is Voodoo chat good?
Update IPSEC VPN client pcf file via ASA 8.2(2) Autoupdate
How to clear a datagridview
Outlook inbox refresh problem after upgrading to Exchange 2010
Restoring Intranet Web Site