talytech
03-24-2011, 06:15 PM
I have a command button (cmdEdit) .. I want to hide this button when my word document opens if it meets certain criteria. How can I accomplish this? For example:
If sUser = "Bob" then
cmdEdit.visible = false
Else
cmdEdit.visible = true
end if
If sUser = "Bob" then
cmdEdit.visible = false
Else
cmdEdit.visible = true
end if