+ Reply to Thread
Results 1 to 8 of 8

Excel to open specific worksheet

  1. #1
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Excel to open specific worksheet

    I have a workbook with 8 worksheet, i want code to open excel with "Sheet8",
    I have a vb code for workbookopen with password like under


    Please Login or Register  to view this content.
    Please help.
    Last edited by hkbhansali; 02-23-2014 at 11:55 AM.
    My English is very poor, so please be patient >_<"

    Thanks & Regards.
    hkbhansali

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Excel to open specific worksheet

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: Excel to open specific worksheet

    i have posted tag.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel to open specific worksheet

    Hi, hkbhansali,

    obviously not in the OP of this thread so you would still have to fulfill in order to allow us to help you.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: Excel to open specific worksheet

    Hi, Holger
    as per your Instruction i have post tag.i think now its as per forum rules.
    sorry for that,because this is my first thread with VB code.

    Thanks for proper Guidance.

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel to open specific worksheet

    Hi, hkbhansali,

    try
    Please Login or Register  to view this content.
    If the code is to work only for access to Sheet8 and not the workbook you should use the Activate-event for triggering the procedure. Please be informed that holding the Shift-key when opening the workbook will deactivate the event.

    Ciao,
    Holger

  7. #7
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: Excel to open specific worksheet

    HI, Holger
    thanks for code, i have try it but when i open my workbook its open with last saved sheet, when i enter password its go to sheet8.

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel to open specific worksheet

    Hi, hkbhansali,

    thatīs the normal way VBA handles the code. You would need to tell us what else should be done as VBA will only execute what is laidf down in tehe code - if we donīt code proper no "correct" execution.

    Ciao,
    Holger

+ 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. Open on specific worksheet
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2009, 07:34 AM
  2. Default a specific worksheet to be in forefront when open excel?
    By jbankert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2006, 11:20 AM
  3. [SOLVED] Open a specific worksheet
    By don in forum Excel General
    Replies: 2
    Last Post: 11-25-2005, 08:15 AM
  4. Open on specific worksheet
    By Adrian in forum Excel General
    Replies: 1
    Last Post: 10-27-2005, 01:05 PM
  5. Replies: 1
    Last Post: 08-26-2005, 05: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