Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi group,
Using XL 97 I have created the custom menu which has a few buttons and one of them is to show the full file path. ‘ ******************** 'e) Show Full File Path With cbcCutomMenu.Controls.Add(Type:=msoControlButton) .Caption = "&Show Full File Path" .FaceId = 1446 .OnAction = "Where_amI" End With ‘ ******************** Sub Where_amI() '*** toggles title bar between document name and full path If ActiveWindow.Caption = ActiveWorkbook.Name Then ActiveWindow.Caption = ActiveWorkbook.FullName Else: ActiveWindow.Caption = ActiveWorkbook.Name End If End Sub How would I toggle the caption of the button from “Show Full File Path” to “Hide Full File Path?” Question #2. Is there a way to make it interactive? I don’t think there’s an After Save routine… Thanks in advance. Tummy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change caption of a button | Excel Worksheet Functions | |||
Place the caption of a toggle button into a cell | Excel Worksheet Functions | |||
Change caption on a macro button | Excel Worksheet Functions | |||
Urgent: VBA Command Button Caption Problem | Excel Programming | |||
Cannot Get Caption to show on custom toolbar button | Excel Programming |