ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Command Bars (https://www.excelbanter.com/excel-discussion-misc-queries/126284-command-bars.html)

KneeDown2Up

Command Bars
 
I have a spreadsheet which I have a code on its opening that disables various
command bars (standard etc). It enables them before close. It has worked fine
for some time, but now I find any other spreadsheet that I open, has these
bars disabled, despite changing the spreadsheet that I originally put this
line in.

Why is this and how do I get my other spreadsheets to show the bars without
having to put an enabling line of code in each time I want to use them?

Many thanks

JE McGimpsey

Command Bars
 
In your custom workbook, put code reenabling and redisabling the command
bars in Workbook_Deactivate and Workbook_Activate event macros,
respectively.

In article ,
KneeDown2Up wrote:

Why is this and how do I get my other spreadsheets to show the bars without
having to put an enabling line of code in each time I want to use them?


KneeDown2Up

Command Bars
 
Ok Panic over - I sorted it. For reference I went into the immediates window
of 'book1' and put the lines of enabling code - pressed enter (checked the
sheet and the menus were there), saved the sheet! (took a few times to
realise despite no prompt if I tried to close sheet without saving, menus
wouldn't come back until I did so). ...phew!

"KneeDown2Up" wrote:

I have a spreadsheet which I have a code on its opening that disables various
command bars (standard etc). It enables them before close. It has worked fine
for some time, but now I find any other spreadsheet that I open, has these
bars disabled, despite changing the spreadsheet that I originally put this
line in.

Why is this and how do I get my other spreadsheets to show the bars without
having to put an enabling line of code in each time I want to use them?

Many thanks


Bob Phillips

Command Bars
 
Use the Workbook activate and deactivate events to disable and enable just
as open and close does.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"KneeDown2Up" wrote in message
...
I have a spreadsheet which I have a code on its opening that disables

various
command bars (standard etc). It enables them before close. It has worked

fine
for some time, but now I find any other spreadsheet that I open, has these
bars disabled, despite changing the spreadsheet that I originally put this
line in.

Why is this and how do I get my other spreadsheets to show the bars

without
having to put an enabling line of code in each time I want to use them?

Many thanks




KneeDown2Up

Command Bars
 
Thanks guys - sorted.

"Bob Phillips" wrote:

Use the Workbook activate and deactivate events to disable and enable just
as open and close does.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"KneeDown2Up" wrote in message
...
I have a spreadsheet which I have a code on its opening that disables

various
command bars (standard etc). It enables them before close. It has worked

fine
for some time, but now I find any other spreadsheet that I open, has these
bars disabled, despite changing the spreadsheet that I originally put this
line in.

Why is this and how do I get my other spreadsheets to show the bars

without
having to put an enabling line of code in each time I want to use them?

Many thanks






All times are GMT +1. The time now is 12:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com