I am trying to use a variable for the name in the Sheets command so that I can put in the names of the CSV file that I have captured in a variable.
Here is the macro that I recorded using Excel 2007:
I would like to replace "Heil15 - Wood Stats" with a String variable called FileName1. Here is what I would like to ultimately get to:![]()
Please Login or Register to view this content.
I keep getting: run time error '9', subscript out of Range error. I have searched and searched but can't find an answer so that I can use a String variable in the code. Can somone (re)direct me?![]()
Please Login or Register to view this content.
Thanks.
Bookmarks