+ Reply to Thread
Results 1 to 10 of 10

I need a shortcut to make a excel file open to a specific sheet

Hybrid View

  1. #1
    EAHRENS
    Guest

    I need a shortcut to make a excel file open to a specific sheet

    I need to know how to modify an excel shortcut to make a file always open to
    a specific named "intro" sheet.

  2. #2
    Anne Troy
    Guest

    Re: I need a shortcut to make a excel file open to a specific sheet

    You can use a macro:
    http://vbaexpress.com/kb/getarticle.php?kb_id=338
    ************
    Anne Troy
    VBA Project Manager
    www.OfficeArticles.com

    "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    >I need to know how to modify an excel shortcut to make a file always open
    >to
    > a specific named "intro" sheet.




  3. #3
    Don Guillett
    Guest

    Re: I need a shortcut to make a excel file open to a specific sheet

    Try doing it within the files workbook_open event in the ThisWorkbook module

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    >I need to know how to modify an excel shortcut to make a file always open
    >to
    > a specific named "intro" sheet.




  4. #4
    Alan
    Guest

    Re: I need a shortcut to make a excel file open to a specific sheet

    You cant do this in a shortcut as far as I know, but this code in the VB
    editor 'This Workbook' will do the trick,
    Post back if you're unfamiliar with VB code,
    Regards,
    Alan.
    Private Sub Workbook_Open()
    Sheets("Intro").Select
    End Sub

    "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    >I need to know how to modify an excel shortcut to make a file always open
    >to
    > a specific named "intro" sheet.




  5. #5
    EAHRENS
    Guest

    Re: I need a shortcut to make a excel file open to a specific shee

    This worked great. I am also running a macro that forces a user to enter a
    new name and excel then changes the file to that name and goes to the table
    of contents. Is there a way to write a macro that will also change the macro
    you gave me to change from the "intro" sheet to the "table of contents sheet"
    when the file is saved under the new name.

    "Alan" wrote:

    > You cant do this in a shortcut as far as I know, but this code in the VB
    > editor 'This Workbook' will do the trick,
    > Post back if you're unfamiliar with VB code,
    > Regards,
    > Alan.
    > Private Sub Workbook_Open()
    > Sheets("Intro").Select
    > End Sub
    >
    > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    > news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    > >I need to know how to modify an excel shortcut to make a file always open
    > >to
    > > a specific named "intro" sheet.

    >
    >
    >


  6. #6
    David McRitchie
    Guest

    Re: I need a shortcut to make a excel file open to a specific shee

    Not clear.but perhaps:

    If you want to select a sheet from the Table of Contents you could
    use a hyperlink, or your could use a double-click event macro.

    http://www.mvps.org/dmcritchie/excel/event.htm
    http://www.mvps.org/dmcritchie/excel....htm#GoToSheet

    Event macros such as doubleclick are installed by right clicking on the
    sheettab then inserting the code after choosing View Code.
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message news:7DAE2B22-EBFE-44C1-B5E3-CEE47A37A3FE@microsoft.com...
    > This worked great. I am also running a macro that forces a user to enter a
    > new name and excel then changes the file to that name and goes to the table
    > of contents. Is there a way to write a macro that will also change the macro
    > you gave me to change from the "intro" sheet to the "table of contents sheet"
    > when the file is saved under the new name.
    >
    > "Alan" wrote:
    >
    > > You cant do this in a shortcut as far as I know, but this code in the VB
    > > editor 'This Workbook' will do the trick,
    > > Post back if you're unfamiliar with VB code,
    > > Regards,
    > > Alan.
    > > Private Sub Workbook_Open()
    > > Sheets("Intro").Select
    > > End Sub
    > >
    > > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    > > news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    > > >I need to know how to modify an excel shortcut to make a file always open
    > > >to
    > > > a specific named "intro" sheet.

    > >
    > >
    > >




  7. #7
    EAHRENS
    Guest

    Re: I need a shortcut to make a excel file open to a specific shee

    I may not have worded my request properly. I am using the follwoing macro to
    make an excel workbook open to a specific worksheet called intro. Private
    Sub Workbook_Open()
    > > Sheets("Intro").Select
    > > End Sub

    The intro sheet then promts the user to enter a new name and the entire
    workbook is then renamed, via a macro, and then the newly named file displays
    the table of contents work sheet. My problem is when the newly named file is
    closed and reopened, it goes to the intro sheet. I need to know how to
    automaticaly change the macro that opens the intro sheet to automatically
    open the table of contents sheet.

    "David McRitchie" wrote:

    > Not clear.but perhaps:
    >
    > If you want to select a sheet from the Table of Contents you could
    > use a hyperlink, or your could use a double-click event macro.
    >
    > http://www.mvps.org/dmcritchie/excel/event.htm
    > http://www.mvps.org/dmcritchie/excel....htm#GoToSheet
    >
    > Event macros such as doubleclick are installed by right clicking on the
    > sheettab then inserting the code after choosing View Code.
    > ---
    > HTH,
    > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    >
    > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message news:7DAE2B22-EBFE-44C1-B5E3-CEE47A37A3FE@microsoft.com...
    > > This worked great. I am also running a macro that forces a user to enter a
    > > new name and excel then changes the file to that name and goes to the table
    > > of contents. Is there a way to write a macro that will also change the macro
    > > you gave me to change from the "intro" sheet to the "table of contents sheet"
    > > when the file is saved under the new name.
    > >
    > > "Alan" wrote:
    > >
    > > > You cant do this in a shortcut as far as I know, but this code in the VB
    > > > editor 'This Workbook' will do the trick,
    > > > Post back if you're unfamiliar with VB code,
    > > > Regards,
    > > > Alan.
    > > > Private Sub Workbook_Open()
    > > > Sheets("Intro").Select
    > > > End Sub
    > > >
    > > > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    > > > news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    > > > >I need to know how to modify an excel shortcut to make a file always open
    > > > >to
    > > > > a specific named "intro" sheet.
    > > >
    > > >
    > > >

    >
    >
    >


  8. #8
    David McRitchie
    Guest

    Re: I need a shortcut to make a excel file open to a specific shee

    since I got a non zero error return code in Excel 2002 even if the sheet was found
    I will just put the sheets in an order so that the last one is the most preferred,
    as I understand the question.

    Right click on the logo to the left of the menu from Excel to open Thisworkbook
    place the following code after Option Explicit

    Sub WorkBook_Open()
    On Error Resume Next
    Sheets(1).Select '-- 1st worksheet
    Sheets("intro").Select
    Sheets("toc").Select
    On Error GoTo 0
    End Sub
    --
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message news:824834FF-0A1F-491A-B36C-D2B86B9E3EFD@microsoft.com...
    > I may not have worded my request properly. I am using the follwoing macro to
    > make an excel workbook open to a specific worksheet called intro. Private
    > Sub Workbook_Open()
    > > > Sheets("Intro").Select
    > > > End Sub

    > The intro sheet then promts the user to enter a new name and the entire
    > workbook is then renamed, via a macro, and then the newly named file displays
    > the table of contents work sheet. My problem is when the newly named file is
    > closed and reopened, it goes to the intro sheet. I need to know how to
    > automaticaly change the macro that opens the intro sheet to automatically
    > open the table of contents sheet.
    >
    > "David McRitchie" wrote:
    >
    > > Not clear.but perhaps:
    > >
    > > If you want to select a sheet from the Table of Contents you could
    > > use a hyperlink, or your could use a double-click event macro.
    > >
    > > http://www.mvps.org/dmcritchie/excel/event.htm
    > > http://www.mvps.org/dmcritchie/excel....htm#GoToSheet
    > >
    > > Event macros such as doubleclick are installed by right clicking on the
    > > sheettab then inserting the code after choosing View Code.
    > > ---
    > > HTH,
    > > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    > >
    > > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message news:7DAE2B22-EBFE-44C1-B5E3-CEE47A37A3FE@microsoft.com...
    > > > This worked great. I am also running a macro that forces a user to enter a
    > > > new name and excel then changes the file to that name and goes to the table
    > > > of contents. Is there a way to write a macro that will also change the macro
    > > > you gave me to change from the "intro" sheet to the "table of contents sheet"
    > > > when the file is saved under the new name.
    > > >
    > > > "Alan" wrote:
    > > >
    > > > > You cant do this in a shortcut as far as I know, but this code in the VB
    > > > > editor 'This Workbook' will do the trick,
    > > > > Post back if you're unfamiliar with VB code,
    > > > > Regards,
    > > > > Alan.
    > > > > Private Sub Workbook_Open()
    > > > > Sheets("Intro").Select
    > > > > End Sub
    > > > >
    > > > > "EAHRENS" <EAHRENS@discussions.microsoft.com> wrote in message
    > > > > news:4CEF8135-5F57-400F-B5AF-9A11396110A8@microsoft.com...
    > > > > >I need to know how to modify an excel shortcut to make a file always open
    > > > > >to
    > > > > > a specific named "intro" sheet.
    > > > >
    > > > >
    > > > >

    > >
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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