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
Backup Exec 12
Access 2010 - packaging a database for distribution
Network issue.
Hardware Firewall Configuration for Direct Access ( Teredo Tunneling)
Should 3rd party drivers start in safe mode?
In Outlook, Advanced Find - Search for Attachment name
Where is resistance, force arm, and fulcrum in a Wheelbarrow?
ipconfig shows lots of "tunnel adapters", what are they?
Windows 7 roaming profiles
How to have a Stable Microsoft Outlook profile with 4-5GB+ data w/ MS Exchange Mail server ?