Thread: menu
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Ken Puls Ken Puls is offline
external usenet poster
 
Posts: 58
Default menu

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 ***