craig159753
New Member
- Joined
- Apr 21, 2015
- Messages
- 24
Hi all,
I am seeing a strange error when running a simple line of VBA code.
When I personally run the VBA macro I do NOT get the error message but when my colleague runs the VBA macro they get the "subscript out of range" error.
The line of code causing this is the following.
It is merely selecting the values from column C from row 177 to row 1357 and copying them.
Any idea why this runs fine for me but fails for my colleague?
Thanks
Craig
I am seeing a strange error when running a simple line of VBA code.
When I personally run the VBA macro I do NOT get the error message but when my colleague runs the VBA macro they get the "subscript out of range" error.
The line of code causing this is the following.
Code:
Dim workbookname as string
Dim worksheetname as string
Workbooks(workbookname).Worksheets(worksheetname).Range("C177:C1357").Copy
It is merely selecting the values from column C from row 177 to row 1357 and copying them.
Any idea why this runs fine for me but fails for my colleague?
Thanks
Craig
Last edited: