Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Application.CommandBars("Sheet").Controls(2).Copy Bar:=Application.CommandBars(1), Befo=11, caption:="shtHide", style:="OnlyText" But, the code doesn't work. How can I? *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What exactly are you trying to do? You seem to be mixing up sheets and
commandbars here. Can you explain your goal a little more clearly? Ken Puls, CMA - Microsoft MVP (Excel) www.excelguru.ca x taol wrote: Application.CommandBars("Sheet").Controls(2).Copy Bar:=Application.CommandBars(1), Befo=11, caption:="shtHide", style:="OnlyText" But, the code doesn't work. How can I? *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With Application
.CommandBars("Sheet").Controls(2).Copy .CommandBars(1), 4 End With this code work well. but i want to change the name with "shtHid" using VBA. *** Sent via Developersdex http://www.developersdex.com *** |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
With Application .CommandBars("Sheet").Controls(2).Copy .CommandBars(1), 4 .CommandBars(1).Controls(4).Caption = "shtHid" End With Is that what you meant? Ken Puls, CMA - Microsoft MVP (Excel) www.excelguru.ca x taol wrote: With Application .CommandBars("Sheet").Controls(2).Copy .CommandBars(1), 4 End With this code work well. but i want to change the name with "shtHid" using VBA. *** Sent via Developersdex http://www.developersdex.com *** |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thank you very much ken,
by the way,, Set mb = Application.CommandBars(1) With mb.Controls 'all show filter .Add Type:=msoControlButton, ID:=900, Befo=11 end with I want to change the name with "all_sho_filt" and set always only text. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drop dwn menu. Formula to count selection frm menu in anoth cell? | Excel Worksheet Functions | |||
filter dropdown menu so 2nd drop menu is customized | Excel Worksheet Functions | |||
Adding Sub Menu Item to Current Custom Menu | Excel Programming | |||
Menu items added with menu item editor in older versions | Excel Discussion (Misc queries) | |||
Adding a menu item right click menu when clicking on a single. | Excel Programming |