mark hansen
Well-known Member
- Joined
- Mar 6, 2006
- Messages
- 534
- Office Version
-
- 2016
- Platform
-
- Windows
I have the following code that seemed to stop working...
Dim ws, bf As Worksheet
'On Error GoTo ErrHandler
Set ws = Sheets(8)
Set bf = Sheets(9)
When I step through it (F8) I get a Error 9 Subscript out of range. The code is on sheet 8 and I want to set WS as sheet 8 and BF as sheet 9.
What could cause this to stop working. It was working when I wrote and stepped through it before?
Thanks,
Mark
Dim ws, bf As Worksheet
'On Error GoTo ErrHandler
Set ws = Sheets(8)
Set bf = Sheets(9)
When I step through it (F8) I get a Error 9 Subscript out of range. The code is on sheet 8 and I want to set WS as sheet 8 and BF as sheet 9.
What could cause this to stop working. It was working when I wrote and stepped through it before?
Thanks,
Mark