FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,368
- Office Version
- 365
- 2016
- Platform
- Windows
This is just a small part of my workbook open code, but the only question is about the use of the caption property.
Using the With Application makes the caption spread to all open workbooks, but I need this just on the workbook that contains the code.
I tried a few examples like Application.ActiveWorkbook, but that doesn't compile.
Using the With Application makes the caption spread to all open workbooks, but I need this just on the workbook that contains the code.
I tried a few examples like Application.ActiveWorkbook, but that doesn't compile.
Code:
Private Sub Workbook_Open()
With Application
.Caption = CurCaption & CurVersion
.StatusBar = MyPOC
End With
End Sub