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
Command Button Images
OCS 2007 R2
C# WMI query for getting current logged on user doesn't work on Windows 7
Network / Internet issues
Looking for Video Recording Software for Samsung Cameras
Database Driven Website
Will an xcopy script from a workstation effect BackupExec 12.5 incremtanl/diff jobs on server?
SSIS Case Statement not executing
Enabling bluetooth in Ubuntu 10.04
sum by date and variable (horizontal)