lockarde
Board Regular
- Joined
- Oct 23, 2016
- Messages
- 77
Good morning all,
I have a spreadsheet that I've used for several weeks - it worked just fine yesterday in fact. Today I turned my computer on, opened the workbook, and suddenly I'm getting a Subscript out of Range error for the following line:
As I said, I literally just opened it, so I haven't made any changes to Sheet name, or anything. I read another post that said try referring to the Sheet via code name, in this case would be Sheet1. I still get the error. Any thoughts on this? I'm very confused - any help is greatly appreciated!
lockarde
I have a spreadsheet that I've used for several weeks - it worked just fine yesterday in fact. Today I turned my computer on, opened the workbook, and suddenly I'm getting a Subscript out of Range error for the following line:
VBA Code:
With ThisWorkbook.Sheets("Job Results")
''some code
Set findcush = .Range("E20:E50").Find("Cushioning", LookIn:=xlWhole) ''error on this line
''some more code
End With
As I said, I literally just opened it, so I haven't made any changes to Sheet name, or anything. I read another post that said try referring to the Sheet via code name, in this case would be Sheet1. I still get the error. Any thoughts on this? I'm very confused - any help is greatly appreciated!
lockarde