Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

Private Sub Workbook_Open()
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
End Sub

Object variable or With Block not set
Run-time error €˜91

Perplexed why this line works fine in an old project but not here. Correct
object library is checked - looking into KB...

Thanks,
Arturo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

Do you use a English version ?

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Arturo" wrote in message ...
Private Sub Workbook_Open()
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
End Sub

Object variable or With Block not set
Run-time error '91'

Perplexed why this line works fine in an old project but not here. Correct
object library is checked - looking into KB...

Thanks,
Arturo



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled =

Yes
2003 SP1

"Ron de Bruin" wrote:

Do you use a English version ?

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Arturo" wrote in message ...
Private Sub Workbook_Open()
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
End Sub

Object variable or With Block not set
Run-time error '91'

Perplexed why this line works fine in an old project but not here. Correct
object library is checked - looking into KB...

Thanks,
Arturo




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled =

Use

Application.CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Arturo" wrote in message ...
Yes
2003 SP1

"Ron de Bruin" wrote:

Do you use a English version ?

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Arturo" wrote in message ...
Private Sub Workbook_Open()
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
End Sub

Object variable or With Block not set
Run-time error '91'

Perplexed why this line works fine in an old project but not here. Correct
object library is checked - looking into KB...

Thanks,
Arturo






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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F daves Excel Discussion (Misc queries) 3 April 24th 07 04:52 AM
Can ActiveX controls be "disabled" and "enabled"? William DeLeo Excel Programming 1 May 7th 04 09:10 PM
Can't Change Commandbars("Worksheet Menu Bar") Tim[_34_] Excel Programming 2 March 3rd 04 04:00 PM
CommandBars("Insert").Enabled question Dusan[_2_] Excel Programming 1 November 28th 03 01:18 PM


All times are GMT +1. The time now is 06:49 PM.

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

About Us

"It's about Microsoft Excel"