Results 1 to 12 of 12

Prompt user to select worksheet

Threaded View

  1. #8
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Re: Prompt user to select worksheet

    If you dont want all sheets to be visible after the user selects the sheet they need (and just unhide the sheet they are after) change the code to the following:

    Private Sub CommandButton1_Click()
    
    Dim sh As Worksheet
    Dim strWS As String
    
    
    strWS = Me.ComboBox1 & " " & Me.ComboBox2
    
    ThisWorkbook.Worksheets(strWS).Visible = True
    ThisWorkbook.Worksheets(strWS).Select
    
    End Sub
    OOPS duplicate post for some reason...mods please delete this one.
    Last edited by nickmax1; 02-18-2013 at 12:50 PM. Reason: duplicate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1