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
Access is denied, unable to remove device when trying to delete a printer.
Custom toolbar query view...
Change the login name of a user in a SQL Server 2005 database
Excel 2007 Can Not Display Images From Web
iSCSI Performance Tuning
Mysql Query to select from two tables
exchange 2003 permissions issue
how can I enter a genuine product key in Windows 7
Server 2008 R2 print server vs. XP clients
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?