Drop down list opens new window
Closed
bzg51n
Posts
1
Registration date
Saturday April 26, 2014
Status
Member
Last seen
April 26, 2014
-
Apr 26, 2014 at 11:25 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 28, 2014 at 12:04 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 28, 2014 at 12:04 PM
Related:
- Drop down list opens new window
- Counter strike 1.6 cheats list - Guide
- All contact number list with name - Guide
- How to change your best friends list on snapchat to 3 - Guide
- Amd crossfire compatibility list - Guide
- Whatsapp country code list - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 28, 2014 at 12:04 PM
Apr 28, 2014 at 12:04 PM
Hi bzg51n,
In the code below the drop down list (ddl) is located in A1. The ddl contains the values "a" and "b" and those are also the sheet names:
Right-click on sheets tab and select view code to paste the code to.
Best regards,
Trowa
In the code below the drop down list (ddl) is located in A1. The ddl contains the values "a" and "b" and those are also the sheet names:
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub If Target = vbNullString Then Sheets("a").Visible = False Sheets("b").Visible = False End If If Target = "a" Then Sheets("a").Visible = True Sheets("b").Visible = False End If If Target = "b" Then Sheets("b").Visible = True Sheets("a").Visible = False End If End Sub
Right-click on sheets tab and select view code to paste the code to.
Best regards,
Trowa