James_Latimer
Active Member
- Joined
- Jan 20, 2009
- Messages
- 415
Excel 2003
Hello, i have a very strange issue that i cant get my head around. If someone could give me some pointers it would be much appreciated.
The following code is flagging the error...
The line highlighted in bold is where the error occurs.
The sheet PSA_Summary does exist so i cant understand why this doesn't work. This doesn't happen on all machines!?!?!?!?!?!?!?!?!?!? Any ideas what may be causing this please?
Thanks to anyone who can help.
Hello, i have a very strange issue that i cant get my head around. If someone could give me some pointers it would be much appreciated.
The following code is flagging the error...
Rich (BB code):
Sub maxPSA()
Dim TVal
Dim Cnt
Dim sh As Worksheet: Set sh = Sheets("PSA_Summary")
Application.ScreenUpdating = False
For Cnt = 15 To 165
If sh.Range("FH" & Cnt).Value = 1 Then
TVal = sh.Range("$FI$" & Cnt).Value
GoTo jd_End:
End If
Next Cnt
Application.ScreenUpdating = True
jd_End:
PSA_graph (TVal)
End Sub
The line highlighted in bold is where the error occurs.
The sheet PSA_Summary does exist so i cant understand why this doesn't work. This doesn't happen on all machines!?!?!?!?!?!?!?!?!?!? Any ideas what may be causing this please?
Thanks to anyone who can help.