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
Excel Interop: Find cell by name
How to configure the email check interval in Lotus Domino 8
Blackberry Printing
Need to modify X-Cart to create .csv file for orders
Exchange 2010. Install Failed, now can't uninstall
Exchange 2007 installation on a Windows 2008 server.
VB.NET - New to MultiThreading - Parameter Count Mismatch
Excel Username Macro
Network issues loading company web-site
Can't connect to local MySQL server through socket