Hello!
I wrote following sub to disable a button
Then somewhere else in a different sub![]()
Sub DisableButton(ByRef b As Object) b.ForeColor = 15 b.Enabled = False End Sub
I tried countless variations of parameters and stuff, but I cant get it to work. How do I call the disablebutton sub correctly?![]()
... Call DisableButton(CommandButton4) ...
Bookmarks