Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 563
- Office Version
- 365
- 2010
- Platform
- Windows
All I am wanting to do is add the formTitle in front of the original caption. I have tried formTitle.caption, formTitle.Text and formTitle.Value inside the "selectRangefrm.caption = formTitle & "Scheduled Quantity Selection Form"". and/or inside the Sub reNameUserfrmCaption. When I change the formTitle.property(caption,text,value), I get the invalid qualifier error. As far as I can notice everything is spelled correctly.
Thank You
Code:
Private Sub UserForm_Initialize()
Call reNameUserfrmCaption
selectRangefrm.Caption = formTitle & "Scheduled Quantity Selection Form"
End Sub
Code:
Sub reNameUserfrmCaption()
Dim formTitle As String
Select Case ActiveWorkbook.Name
Case Is = "SDPF - LINE 1 (SLAT).xlsx"
formTitle = "Slat"
Case Is = "SDPF - LINE 2A.xlsx"
formTitle = "Uhlmann"
Case Is = "SDPF - LINE 3.xlsx"
formTitle = "Korber"
Case Is = "SDPF - LINE 4.xlsx"
formTitle = "IMA"
End Select
End Sub
Thank You