Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Hide Queries (Excel 2002)

    Hi

    I have two worksheets one called "Input" and one called "Engineer".

    I have created a form button to go to Input from Engineer, but I want to hide the worksheet Engineer when this macro has run and I have returned to Input

    but I can't fathom it out.


    Sub GoToInput()
    '
    ' GoToInput Macro
    ' Macro recorded 23/06/2005 by Alan Bradshaw
    '

    '
    Sheets("Input").Select
    Range("C7").Select
    End Sub

    Many Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hide Queries (Excel 2002)

    Sheets("Engineer").Visible=False
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Hide Queries (Excel 2002)

    Hi Jan Karel

    Thanks I was almost there but I missed the "s" off of sheets.


    Thanks for the reply

    Braddy
    If you are a fool at forty, you will always be a fool

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hide Queries (Excel 2002)

    To hide the sheet:

    Sheets("Engineer").Visible = False

    If you don't want the user to be able to unhide the sheet:

    Sheets("Engineer").Visible = xlVeryHidden
    Legare Coleman

  5. #5
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Hide Queries (Excel 2002)

    Hi Legare

    Thanks for the extra bit of information. That's good to know.

    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

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