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
CSS
hp msl 2024 attaching p212 on FreeBSD 8 p3
How to add a new value from a form onto a subform
Exchange 2007 has stopped working
login script copy a shortcut to everybody's desktop
Teaching iPhone app creation...Any advice?
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
anchor on seperate page not working in safari and firefox
detect startmenu sortcuts who's target no longer exists
Any way of showing a list of the users that logged on to a Windows XP SP3