Hi,
I keep getting a runtime error 9 - subscript out of range on this one line:
Private Sub btnaddjob_Click()
frmDefects.Show
Dim B1 As Button
B1 = ActiveSheet.Buttons("btnclose")
B1.Font.ColorIndex = 15
B1.Enabled = False
End Sub
There is no misspelling of the name and I have a userform called frmDefects in my collection.
Cannot figure out why it will not accept this simple command
Anyone got any ideas???
I keep getting a runtime error 9 - subscript out of range on this one line:
Private Sub btnaddjob_Click()
frmDefects.Show
Dim B1 As Button
B1 = ActiveSheet.Buttons("btnclose")
B1.Font.ColorIndex = 15
B1.Enabled = False
End Sub
There is no misspelling of the name and I have a userform called frmDefects in my collection.
Cannot figure out why it will not accept this simple command
Anyone got any ideas???