msmarchingtenor
New Member
- Joined
- Sep 15, 2014
- Messages
- 3
Hello,
I am running across an issue where I receive the Subscript out of Range Error 9 when trying to execute a macro. Using a identical file, it only happens on half of my coworker's computers, but works just fine on others. Have any of you come across this type of scenario? Could this be an issue of our settings?
Not sure if it is helpful, but here is the section of code the debugger shows (it highlights the second to last line):
'Dim i As Integer
' Take away the .xls from the name
thiflnm = ActiveWorkbook.Name
j = 1
Do Until Mid(thiflnm, j + 1, 1) = "."
j = j + 1
Loop
thiflnm = Left(thiflnm, j)
Workbooks(thiflnm).Sheets("Row Numbers").Columns("A:A").ClearContents
Workbooks(thiflnm).Sheets("Sample").Cells.ClearContents
Thanks for the help!
I am running across an issue where I receive the Subscript out of Range Error 9 when trying to execute a macro. Using a identical file, it only happens on half of my coworker's computers, but works just fine on others. Have any of you come across this type of scenario? Could this be an issue of our settings?
Not sure if it is helpful, but here is the section of code the debugger shows (it highlights the second to last line):
'Dim i As Integer
' Take away the .xls from the name
thiflnm = ActiveWorkbook.Name
j = 1
Do Until Mid(thiflnm, j + 1, 1) = "."
j = j + 1
Loop
thiflnm = Left(thiflnm, j)
Workbooks(thiflnm).Sheets("Row Numbers").Columns("A:A").ClearContents
Workbooks(thiflnm).Sheets("Sample").Cells.ClearContents
Thanks for the help!