ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Morning all,
As per title, in my workbook i have several worksheets.
On one worksheet when i click on the name tab i would like the userform to be shown.
I have clicked the tab in question,alt + f11, this workbook and then placed the following code there.
When i then click the tab in question i would expect the userform to be shown but i just see a blank worksheet & dont see any errors either.
What happens is when i open the workbook the userform is shown,but i would only like to see userform when i click the tab of the required worksheet.
What did i do wrong.
Many Thanks.
As per title, in my workbook i have several worksheets.
On one worksheet when i click on the name tab i would like the userform to be shown.
I have clicked the tab in question,alt + f11, this workbook and then placed the following code there.
When i then click the tab in question i would expect the userform to be shown but i just see a blank worksheet & dont see any errors either.
What happens is when i open the workbook the userform is shown,but i would only like to see userform when i click the tab of the required worksheet.
What did i do wrong.
Many Thanks.
Code:
Private Sub Workbook_Open()LockPicking.Show
End Sub
Last edited: