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
Can't add secondary domain controller
Getting violation of primary key during bulk insert.
Help with SEO
How can I rotate a video?
Mouse wheel action on scroller
How to run app on local machine and display results in web page
override err.raise?
FAXCOOLWAREZ037 192.168.1.38 00-1A-73-C3-39-8A
Loop through Months Of Year to pop ddl
SQL Query help