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
Older Flash document potential issues
How to change Hotsname and ipaddress of Oracle Databse server
Restricted Groups Best Practice
Progress Bar Bound to Timer
How do I fix odbc call failed #1062 under access vba with a mysql backend?
Windows Server 2008 NLB Issue
lpr print server issue
Union query
MS SQL Stored Procedure miscounting number of characters
iPhone 4 xcode "Line Drawing app"