i want to make it not visible once it has been clicked, but when the worksheet is opened again i want it to be visible. when you asked if the code was in the sheet that the button was in, i put it in there after my call statement, like this
Private Sub CmdUpdate_Click()
Call Filter
CmdUpdate.Visible = False
End Sub
now that works fine. (filter is the macro in the module)
now i don't know where to put the code to have it be visible when the workbook opens
it gives me an error if i try this in the sheet that the button is in...
Private Sub Workbook_Open()
CmdUpdate.Visible = True
End Sub
I can't seem to work this out. If no-one else responds to this tonite, I will take a look at work tomorrow.
You say:
"now i don't know where to put the code to have it be visible when the workbook opens"
Does the workbook get closed at some point? The when the workbook gets reopened, make the button visible again?
Maybe one you can help me.
Im having problems correctly troubleshooting for greyed out option buttons that are located along the top bar when in print preview in office 97. If you have any Ideas beside uninstalling and reinstalling please let me know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.