Hi,
Could someone please tell me how I get my UserForm2 to be dsiplayed everytime I select a tab? (apart from on opening workbook).
Help is apprecaited.
n.
Hi,
Could someone please tell me how I get my UserForm2 to be dsiplayed everytime I select a tab? (apart from on opening workbook).
Help is apprecaited.
n.
Hi,Originally Posted by newbie13
You could use the worksheet activate event, this goes into the worksheet module
Right click on the sheets tab and select view codes
copy and paste this code there
![]()
Private Sub Worksheet_Activate() UserForm1.Show End Sub
Dave's suggestion is spot on. But, instead of entering that code into each sheets code, I'd use this code in the workbook code:
This could save a bit of time, especially if you have a number of sheets.![]()
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) UserForm1.Show End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks