+ Reply to Thread
Results 1 to 4 of 4

Does a "hasNext" boolean exist for worksheets?

  1. #1
    Registered User
    Join Date
    06-03-2008
    Posts
    35

    Does a "hasNext" boolean exist for worksheets?

    Is there a way to check the name of the next tab/worksheet following the active worksheet? I'm assuming some sort of method has to exist that can help me.

    I'm writing a macro that is compiling and calculating a good deal of data. There are several tabs that are labeled according to date (weeks), and I want to be able to compile data into months on another tab. I thus need to be able to check the label of the next worksheet (in sequential order) to determine whether or not to print the data and reset the values (based off of the name).

    I'm hoping to avoid actually creating an example workbook, but if it'd help clarify, I'll whip one up.

    Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Not sure exacly what you want but maybe

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-03-2008
    Posts
    35
    Yes, that will work for what I'm trying to do. Thanks!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Glad it helped.

+ 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