+ Reply to Thread
Results 1 to 5 of 5

Check worksheet called 'End' is actually at the end

  1. #1
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 365 v2402
    Posts
    263

    Check worksheet called 'End' is actually at the end

    I have a spreadsheet that can have anywhere between 500-1000 worksheets but the final sheet is always one called 'End'. Since other people use the spreadsheet and lots of data is imported/exported, sometimes 'End' gets moved. I need a macro that can check the relative location of End and make sure it is where it's supposed to be.

    I thought something along the lines of: count number of worksheets in workbook. Get relative position of End. If these two match, okay, if not then End is not where it's supposed to be. I only know how to count the worksheets though, i.e.

    Please Login or Register  to view this content.
    Bit stuck with how to return the position of a specific worksheet however...

    Cheers
    Rob
    Last edited by TheRobsterUK; 05-30-2014 at 09:38 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Check worksheet called 'End' is actually at the end

    Please Login or Register  to view this content.

    Not tested.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Check worksheet called 'End' is actually at the end

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Check worksheet called 'End' is actually at the end

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 365 v2402
    Posts
    263

    Re: Check worksheet called 'End' is actually at the end

    Thanks all. :-)

    Rob

+ 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. Can a Function( ) called from within worksheet write to another cell?
    By 1Gunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 04:19 PM
  2. [SOLVED] How to reference the name of the module in which a function is called in a worksheet
    By candy.chiu.ad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2012, 01:28 PM
  3. save active worksheet in directory called in another worksheet cell
    By chi11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2012, 06:15 PM
  4. code called from module check first data only not all of them
    By suny100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2011, 05:20 AM
  5. Determine Which Check Box Called Procedure
    By jasoncw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2009, 05:06 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