+ Reply to Thread
Results 1 to 4 of 4

Opening specific worksheet using macro- Help

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Opening specific worksheet using macro- Help

    Hi,
    I'm having a problem to use the macro for opening a specific worksheet in a workbook. My plan to setup the workbook to open the first worksheet no matter which worksheet that was last saved and close.

    What i have in mind is like below macros but it is not working.

    Private Sub Workbook_Open()
    Worksheets("Main").Activate
    End Sub

    Attached is the sample for the workbook.

    Thanks for the help..
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Opening specific worksheet using macro- Help

    But in your workbook_Open code window you just have code for msgbox and don't have the code which you shown in your post.

    Replace your current code with the below one

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Opening specific worksheet using macro- Help

    Hi Sixthsense ,
    I thought I need to create a new code for that function....It works now. Thanks a lot !!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Opening specific worksheet using macro- Help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Opening excel workbooks at specific worksheet?
    By julescaspar in forum Excel General
    Replies: 1
    Last Post: 08-13-2009, 09:34 PM
  2. Force Excel to direct user to a specific worksheet upon opening
    By somesunnyday in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2008, 06:11 PM
  3. Replies: 2
    Last Post: 11-22-2008, 09:59 PM
  4. [SOLVED] [SOLVED] opening a worksheet at a specific point
    By crusty53 in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 08-17-2006, 12:15 PM
  5. Opening specific worksheet from hyperlink
    By AndrewMead in forum Excel General
    Replies: 4
    Last Post: 07-28-2005, 04:05 AM

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