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
How to make an exclusive edit
ASP.NET MVC with jquery icon buttons
mail in outbox till another folder is clicked
Sharepoint 3.0 permissions resetting
IE errors on ajax function
My documents folder is missing from profile folder in explorer in Windows 7 Pro 32-bit.
Can Ping host name but not Browse
Oracle 11g "Alter Session" Error
Windows 7 profile won't delete completely
excel vba to save worksheet as mht file