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
Installing PHP XP (IIS 5.1)
Failover internet routing advice
Translate web site
Newsletter emails stuck in qmail queue
Vlookup with exact number format
Your message wasn't delivered because of security policies. Microsoft Exchange will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator
drop db but keep the files
jQuery script error in Firebug
How to connect Crystal Report to SQL database in .NET C#
How do I check if a window is already open or give it focus using Flex/Flash