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
SQL2005 View being forced to Encrypted
Communication between 2 remote Servers
Erratic Cursor behavior on Word 2007
Exchange Server mail delay.
Exporting from SQL Server 2005 Table to Flat file with UTF-8 Problem.
get 550 5.7.1. Unable to relay for specific domains....
Confirmation of TCP/IP connection states
Exchange Server 2007 SP3 with Windows 2008 R2
Exchange 2010 RPC error
Hosts file resolution does not work