Josh_Johnson
New Member
- Joined
- Mar 20, 2017
- Messages
- 4
This is my first time posting on the forum, so I want to go ahead and thank you all for the support that you have given me so far.
I am very new to VBA & Macros, so if my question seems silly, I apologize. I have tried researching this, but I cannot find an answer.
Here is what I have: I am creating a workbook with numerous sheets on it that will be saved on a public drive. Whenever a user opens the workbook I want the "Table of Contents" worksheet to come up. I coded this like:
Private Sub Workbook Open()
Worksheets ("Table of Contents").Activate
End Sub
This works fine, but what I also want is for a Msg box to come up whenever they open the Workbook as well. I had this coded as:
Private Sub Workbook Open()
Msgbox ("Content")
End Sub
This gave me an error because of them having the same name, so i tried changing to
Private Sub Workbook Auto Open()
Msgbox ("Content")
End Sub
This still did not work.
I can make one or the other work, but never both. What do I need to do?
Thanks,
VBA NEWB
I am very new to VBA & Macros, so if my question seems silly, I apologize. I have tried researching this, but I cannot find an answer.
Here is what I have: I am creating a workbook with numerous sheets on it that will be saved on a public drive. Whenever a user opens the workbook I want the "Table of Contents" worksheet to come up. I coded this like:
Private Sub Workbook Open()
Worksheets ("Table of Contents").Activate
End Sub
This works fine, but what I also want is for a Msg box to come up whenever they open the Workbook as well. I had this coded as:
Private Sub Workbook Open()
Msgbox ("Content")
End Sub
This gave me an error because of them having the same name, so i tried changing to
Private Sub Workbook Auto Open()
Msgbox ("Content")
End Sub
This still did not work.
I can make one or the other work, but never both. What do I need to do?
Thanks,
VBA NEWB