+ Reply to Thread
Results 1 to 12 of 12

how to find the first worksheet with the year as name

  1. #1
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    how to find the first worksheet with the year as name

    Hi
    I have many worksheet in an woorkbook. Like printkalender and onder with 2018 2019.
    Now i whant to now what is the name of the first sheet with only a year in the name tab

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to find the first worksheet with the year as name

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to find the first worksheet with the year as name

    thx
    But how can i find a random sheet with is mumeric

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to find the first worksheet with the year as name

    In your original post, you said:
    the name of the first sheet with only a year
    so the macro I suggested finds the first sheet. What do you mean by
    find a random sheet

  5. #5
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to find the first worksheet with the year as name

    How can i find eny sheets that have only mumbers like 2020 2018 2019
    No not only the first sheet with in the name only mumbers but also sheets with a specific number
    Last edited by glda19; 03-27-2019 at 10:12 AM.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: how to find the first worksheet with the year as name

    How about this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to find the first worksheet with the year as name

    Do you want to search for a specific sheet or for the first sheet? If you want a specific sheet, what is the specific number or do you want to be prompted to enter the number you want to search?
    Last edited by Mumps1; 03-27-2019 at 10:36 AM.

  8. #8
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to find the first worksheet with the year as name

    @bakerman2
    What is the use of that like "[2-9][0-9][0-9][0-9]"

  9. #9
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to find the first worksheet with the year as name

    i what both first and a specific sheet
    for exmaple 2019 or any other number

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to find the first worksheet with the year as name

    How do you determine which sheet is the specific sheet? When the first sheet and specific sheet are found, what do you want to do with them?

  11. #11
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to find the first worksheet with the year as name

    i want to find any sheet that have only numbers

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to find the first worksheet with the year as name

    Try:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Copying Specific DATA (YEAR) in a Worksheet to a new Worksheet
    By tonyusmcret in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2018, 09:18 PM
  2. [SOLVED] countifs to find the total count between this year and last year for series of data
    By maher2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2016, 02:39 AM
  3. find who less than one year
    By zEr. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2016, 05:24 PM
  4. [SOLVED] Copy rows from worksheet to another worksheet that date is not current year
    By Lottoman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2016, 03:38 PM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. Calculate cost in one worksheet depending on year in another worksheet
    By bmarv in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2013, 05:43 PM
  7. Replies: 4
    Last Post: 07-16-2012, 07:02 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