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
Network / Internet issues
VB Script to delete certain file types from a network location
RHCE Exam
Batch file to remove whitespace - similar to word replace ^w
Secondary Graphics card for PhysX processing with current 9800GTX
Best Photo Editing software
Problems Upgrading to WIN XP SP3
Gridview delete
Controlling Exchange 2010 port usage + some mythbusting
Windows 7 Enterprise vs Ultimate?