Enable Alt+F to access File Menu

im_kaushal

New Member
Joined
May 8, 2010
Messages
27
Hi All,

While working on a macro I had to made my File menu invisible by Application.CommandBars("File").Visible = False. After completing my task I made my File Menu again vishible by making the same condition True.

However, in the process I have lost my access Key (Alt +F). Now I don't see the underscore below the letter "F" in my File menu nor Alt+F opens my File menu.

How can I bring my "File" menu to be accessed by Alt+F.


Many thanks in advance.

Rgds, Kaushal
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Do you mean you used:
Code:
Application.CommandBars(1).Controls("File").Visible = True

to reset it since what you posted would not have worked?
 
Upvote 0
I did used the code
Application.CommandBars(1).Controls("File").Visible = False in my workbook open event and than (to make my File menu invisible)

Application.CommandBars(1).Controls("File").Visible = True
in my workbook before close event (to make it visible again)

but in the process i have lost the (_) undescore right below the letter F of "File" which allows it to be accessed by Alt+F..

how can i recover it...

I tried finding any solution for the same on google but got no luck.

Rgds, Kaushal
 
Upvote 0
I can't replicate that behaviour, but you could try:
Code:
Application.CommandBars(1).controls("File").reset
 
Upvote 0
Thanks alot for your response
Unfortunately the above mentioned solution doesn't work. Even i can't remember what mess i did with my excel. But I have lost my Access Key (Alt+F) for accessing File menu.. I was looking for the help related to the same on google. and i got to know that it has something to do with Tool - Customize- Command Options ..

Rgds, Kaushal
 
Upvote 0
And also to add on I was working on citrix environment. May be the reason for such behaviour of excel macro...
 
Upvote 0
Try:
Code:
Application.CommandBars(1).controls("File").Caption = "&File"
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,594
Members
449,320
Latest member
Antonino90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top