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
How can you search e-mail within Outlook 2010 and not use the index?
Powerpoint 2003 chart labels alignment
MPP microsoft project plan. How can i open a file created in ver 2010 in MPP 2003 or 2007.
Convert PDF into Excel spreadsheet
Basic php/mysql questions
Is there a way to provide a range of values to the decode feature of SQL Query?
How to view a .pwi file in XP: Office 2007?
Program Can't See Mapped Drive But Explorer Can
Color of edit box
How to generate a heap dump in JBoss