Results 1 to 4 of 4

Close opend sheets from a Dropdown List

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Close opend sheets from a Dropdown List

    I have used the following code to open sheets displayed from a dropdown list.


    Sub Oval3_Click()
        
        On Error Resume Next
        With Sheets(Sheets("Index").Range("C13").Text)
            .Visible = xlSheetVisible
            .Select
        End With
        
    End Sub
    I tried to modify the code to be able to close the sheet in the same manner but my very poor VBA skill leave me at a brick wall. I tried,


    Sub Oval4_Click()
        
        On Error Resume Next
        With Sheets(Sheets("Index").Range("C13").Text)
            .Visible = False xlSheet
            .Select
        End With
        
    End Sub
    but I am getting an error msg.

    Jim O
    Last edited by JO505; 09-14-2013 at 06:18 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hyperlink sheets dropdown list
    By okelly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2013, 05:58 AM
  2. [SOLVED] Macro to Unhide sheets from a Dropdown List
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 05:32 PM
  3. Retrieve Data from other sheets using dropdown list.
    By lemuel in forum Excel General
    Replies: 8
    Last Post: 09-28-2012, 09:35 AM
  4. dropdown list, multiple sheets, automatic fill
    By roybean in forum Excel General
    Replies: 3
    Last Post: 12-09-2009, 05:39 AM
  5. Replies: 1
    Last Post: 06-29-2005, 08:05 PM

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