Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide Custom Command Bar if Workbook opened Read-Only
When I open my workbook read-only, the macro listed below runs. How
do I also have my custom command bar hide as well? Sub ShowAffOnly() Dim wsSheet As Worksheet For Each wsSheet In Worksheets If wsSheet.Name < "Affiliation" Then wsSheet.Visible = xlVeryHidden Next wsSheet End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide Custom Command Bar if Workbook opened Read-Only
Application.Commandbars("MyCustom").Visible = False
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... When I open my workbook read-only, the macro listed below runs. How do I also have my custom command bar hide as well? Sub ShowAffOnly() Dim wsSheet As Worksheet For Each wsSheet In Worksheets If wsSheet.Name < "Affiliation" Then wsSheet.Visible = xlVeryHidden Next wsSheet End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide Custom Command Bar if Workbook opened Read-Only
On Apr 28, 3:59*am, "Bob Phillips" wrote:
Application.Commandbars("MyCustom").Visible = False -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... When I open my workbookread-only, the macro listed below runs. * How do I also have my custom command bar hide as well? Sub ShowAffOnly() Dim wsSheet As Worksheet For Each wsSheet In Worksheets IfwsSheet.Name < "Affiliation" Then wsSheet.Visible = xlVeryHidden Next wsSheet End Sub- Hide quoted text - - Show quoted text - Thank you so much. I wish I would learn to quit making it harder than it is. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Open Workbook Read Only and hide select worksheets | Excel Programming | |||
stop excel file opened as read only if already opened by another u | Excel Programming | |||
Rules that act on messages after they are opened & read? | Excel Discussion (Misc queries) | |||
Is Workbook read-only because of file permission or because file is already opened? | Excel Programming | |||
How to read sheet of currently opened workbook | Excel Programming |