T
Tummy
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
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