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
Mail delivery has failed
Clear only first 5 columns
Quick Launch Tool Bar
How to get lightbox to show over Flash banner?
Visio 2007 - Adding Connector Drag points
jQuery Autocomplete with PHP / MySQL [PART 2]
How do I use the Windows XP installation disc to replace missing system files?
How can you search e-mail within Outlook 2010 and not use the index?
How do I get this PHP IMAP script to fetch the body of emails? I can't get it to work.
Roaming Profiles in Windows 7 Pro and SBS 2008