+ Reply to Thread
Results 1 to 4 of 4

Open workbook to sheet

  1. #1
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Open workbook to sheet

    I have a workbook with a sheet for each year, named REPORTS 22, REPORTS 23, REPORTS 24, etc.
    I currently have the workbook open to sheet REPORTS 22 with the this code in ThisWorkbook:

    Please Login or Register  to view this content.
    I would like to have it automatically open to the report for the current year.

    I can use
    Please Login or Register  to view this content.
    to get the last 2 digits of the current year in a cell, but don't know how to make it a variable or to make it a part of the sheet name.
    Hopefully, I can get this to work before Jan 1, 2023.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Open workbook to sheet

    Hello. For example:

    Please Login or Register  to view this content.
    This will work for you for the next 78 years...
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  3. #3
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Re: Open workbook to sheet

    Thank you so much. You make it look so simple.

  4. #4
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Open workbook to sheet

    Quote Originally Posted by Len Silva View Post
    You make it look so simple.
    Maybe it is...
    __________________

    Thanks for the +rep.

+ 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 file into sheet in currently open workbook
    By stevecar144 in forum Excel General
    Replies: 1
    Last Post: 12-13-2019, 12:28 PM
  2. [SOLVED] VBA to save a newly open workbook to a specfic workbook and then sheet within
    By namluke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2014, 05:14 PM
  3. [SOLVED] Copying a sheet from another workbook into open workbook
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2013, 08:56 AM
  4. Simple Open Workbook, Copy Sheet, Paste In New Workbook Question
    By alulla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 02:10 PM
  5. [SOLVED] COPY from an open workbook with particular sheet and columns to active workbook
    By purin0c0 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2012, 03:57 PM
  6. Macro, copy UNLOCKED cell range of sheet in open workbook to workbook template
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:18 AM
  7. Replies: 0
    Last Post: 03-06-2006, 01:07 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