Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default 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 ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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 ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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 ***







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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 ***









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Commandbars Jean-pierre Hermans Excel Programming 2 August 22nd 04 08:00 PM
Commandbars Libby Excel Programming 1 August 8th 04 07:11 PM
CommandBars garry Excel Programming 3 June 24th 04 03:12 PM
CommandBars defj Excel Programming 2 November 16th 03 12:57 AM


All times are GMT +1. The time now is 05:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"