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
WatchGuard XTM Web UI
Exchange 2010 Antivirus Options
added a function to webservice. Why can't i see it by intellesense on the client
Mac OS X 10.6.3 Can't logon to Active directory
T SQL Query and Dates
Insert Script from the command prompt
Exchange 2010 resource mailbox for meeting room
Setting Folder Permission in Windows XP - VB Script
Install SQL reporting services 2005 and 2008 on the same server
How do I add rows to a datagridview based upon a For Each statement in VS2008?