FrenchCelt
Board Regular
- Joined
- May 22, 2018
- Messages
- 214
- Office Version
- 365
- Platform
- Windows
Hello,
I have a macro that works just fine when running on the original system generated Excel report from which I get the data. I then created a macro enabled template which requires copying all the data from the original worksheet and pasting onto the template. When I run the macro from the template, I get an error (Run-time error '9': Subscript out of range), and I get the same error if I simply copy the original data, paste onto a new worksheet, and run the original macro using the shortcut key. This leads me to think that something about copying and pasting the data is affecting the format, causing the macro to error out. Does anyone have any insight into this matter?
I have a macro that works just fine when running on the original system generated Excel report from which I get the data. I then created a macro enabled template which requires copying all the data from the original worksheet and pasting onto the template. When I run the macro from the template, I get an error (Run-time error '9': Subscript out of range), and I get the same error if I simply copy the original data, paste onto a new worksheet, and run the original macro using the shortcut key. This leads me to think that something about copying and pasting the data is affecting the format, causing the macro to error out. Does anyone have any insight into this matter?