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
Time for a object to be delivered
CSS Javascript menu - problem aligning submenus
Win2008 Domain Controller is rejecting replication requests
Will this drive work in a Dell Latitude D620
Construct and Launch URL
SBS2k8 E-mail alias already exists
Access VBA 2010 - drag and drop on a form
Server 2008 NLB problem
ACT! pad file question
Exchange 2007 OWA causes 2 audit failures on failed login attempt