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
    Hi

    I have created a simple userform with buttons to open worksheets,and for the life of me I can't remember the code or how to apply it.

    Grateful for any help

    Regards

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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Do you want to open a workbook or to activate a worksheet?

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post
    [quote name='HansV' post='779886' date='15-Jun-2009 15:44']Do you want to open a workbook or to activate a worksheet?[/quote]

    Hi Hans

    I want to open a worksheet,

    Thanks

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

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Braddy, I assume that you want to activate a worksheet. You can do this as follows:

    Worksheets("MySheet").Select

    or

    Worksheets("MySheet").Activate

    where MySheet is the name of the sheet.

  5. #5
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post
    [quote name='HansV' post='779903' date='15-Jun-2009 16:11']Braddy, I assume that you want to activate a worksheet. You can do this as follows:

    Worksheets("MySheet").Select

    or

    Worksheets("MySheet").Activate

    where MySheet is the name of the sheet.[/quote]

    Hi Hans Thanks very much for that.

    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
  •