ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CommandBars disappeared (https://www.excelbanter.com/excel-programming/337779-commandbars-disappeared.html)

Neil Atkinson

CommandBars disappeared
 

Hi all after copying code through links on here my command bars have
disappeared! Even right Click does not bring up the menu on bars or
cells! have re-strarted the PC and when opening Excel only the formula
bar is visible and I cannot reset and command bars. Please help ASAP

Regards
Neil


*** Sent via Developersdex http://www.developersdex.com ***

Norman Jones

CommandBars disappeared
 
Hi Neil,

Try:

Hit Alt-F11 to go to the VBE
Insert | Module
Paste the following:

Sub RestoreToolBars()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB
End Sub

Run the code
Alt-F11 to return to Excel

---
Regards,
Norman



"Neil Atkinson" wrote in message
...

Hi all after copying code through links on here my command bars have
disappeared! Even right Click does not bring up the menu on bars or
cells! have re-strarted the PC and when opening Excel only the formula
bar is visible and I cannot reset and command bars. Please help ASAP

Regards
Neil


*** Sent via Developersdex http://www.developersdex.com ***




Karoo News

CommandBars disappeared
 

Great that worked fine, many Thanks


"Norman Jones" wrote in message
...

Hi Neil,

Try:

Hit Alt-F11 to go to the VBE
Insert | Module
Paste the following:

Sub RestoreToolBars()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB
End Sub

Run the code
Alt-F11 to return to Excel

---
Regards,
Norman



"Neil Atkinson" wrote in message
...

Hi all after copying code through links on here my command bars have
disappeared! Even right Click does not bring up the menu on bars or
cells! have re-strarted the PC and when opening Excel only the formula
bar is visible and I cannot reset and command bars. Please help ASAP

Regards
Neil


*** Sent via Developersdex http://www.developersdex.com ***








Norman Jones

CommandBars disappeared
 
Hi Neil,

Great that worked fine, many Thanks


Thank Bob instead.

I assumed (despite the change of thread) that you had initially used Bob's
code and I merely gave you Bob's code with the logic reversed.

---
Regards,
Norman



"Karoo News" wrote in message
...

Great that worked fine, many Thanks


"Norman Jones" wrote in message
...

Hi Neil,

Try:

Hit Alt-F11 to go to the VBE
Insert | Module
Paste the following:

Sub RestoreToolBars()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB
End Sub

Run the code
Alt-F11 to return to Excel

---
Regards,
Norman



"Neil Atkinson" wrote in message
...

Hi all after copying code through links on here my command bars have
disappeared! Even right Click does not bring up the menu on bars or
cells! have re-strarted the PC and when opening Excel only the formula
bar is visible and I cannot reset and command bars. Please help ASAP

Regards
Neil


*** Sent via Developersdex http://www.developersdex.com ***











All times are GMT +1. The time now is 04:13 PM.

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