Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Custom Made Toolbar


Hi Guys,

Need to know if it is possible to enable/disable/hide/show certai
buttons on a custom toolbar I made

Thanks

Da

--
drawling
-----------------------------------------------------------------------
drawlings's Profile: http://www.excelforum.com/member.php...fo&userid=3662
View this thread: http://www.excelforum.com/showthread.php?threadid=57174

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Excel Custom Made Toolbar

Hi Dan,

Try something like:

'=============
Public Sub TesterA01()
Dim TBar As CommandBar

Set TBar = Application.CommandBars("YourToolbar") '<<==== CHANGE
TBar.Controls(1).Enabled = False

End Sub
'<<=============


--
---
Regards,
Norman



"drawlings" wrote
in message ...

Hi Guys,

Need to know if it is possible to enable/disable/hide/show certain
buttons on a custom toolbar I made

Thanks

Dan


--
drawlings
------------------------------------------------------------------------
drawlings's Profile:
http://www.excelforum.com/member.php...o&userid=36626
View this thread: http://www.excelforum.com/showthread...hreadid=571747



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Custom Made Toolbar


Thanks for your reply.

That code works great at disabling the toolbar itself, but I need to
disable certain buttons within the toolbar.

Example:

Toolbar Name: P&L
I have 6 buttons in total and I want to disable the second button
'Options'.
Button1 = Download
Button2 = Options

etc.....



Thanks

Dan


--
drawlings
------------------------------------------------------------------------
drawlings's Profile: http://www.excelforum.com/member.php...o&userid=36626
View this thread: http://www.excelforum.com/showthread...hreadid=571747

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Excel Custom Made Toolbar

Hi Dan,

That code works great at disabling the toolbar itself, but I need to
disable certain buttons within the toolbar.


The suggested code does not disable the custom toolbar; it disables only the
first control on the toolbar.



---
Regards,
Norman


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Custom Made Toolbar


Ok, so is there code to disable a button within a toolbar?


--
drawlings
------------------------------------------------------------------------
drawlings's Profile: http://www.excelforum.com/member.php...o&userid=36626
View this thread: http://www.excelforum.com/showthread...hreadid=571747



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Excel Custom Made Toolbar

Hi Dan,

Yes - try my suggested code.


---
Regards,
Norman



"drawlings" wrote
in message ...

Ok, so is there code to disable a button within a toolbar?


--
drawlings
------------------------------------------------------------------------
drawlings's Profile:
http://www.excelforum.com/member.php...o&userid=36626
View this thread: http://www.excelforum.com/showthread...hreadid=571747



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
copy check boxes (made from form toolbar) hoffjero Excel Discussion (Misc queries) 6 February 4th 09 11:20 PM
SOS: Excel custom Toolbar hedonists Excel Programming 0 January 12th 06 03:16 PM
Adding a check mark to the custom made toolbar/menu continue...... aiyer[_59_] Excel Programming 0 September 2nd 04 12:52 AM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM
How can I get into VBA for a custom toolbar - Excel 97 Jody[_4_] Excel Programming 5 November 6th 03 05:39 PM


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

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"