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
How do I populate a SQL Express table from Excel file?
Vmware standalone convertor error
Problem with Templated User Control
Repair exchange database on difference server ?
Proxy? Do I have to?
MS Access SQL Divide by Zero workaround needed
How do I setup my domain controller to keep the correct time on my domain?
How to improve the email performance in C#
how do you read a list of links from a sql database SP and print the list on a aspx .NET ASP page C#
Assigning a GPO to specific users and one Server only ?