+ Reply to Thread
Results 1 to 3 of 3

How to find the 1st sheet of a workbook

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    mass, usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    How to find the 1st sheet of a workbook

    I have a macro that is designed to collect info from all sheets of a workbook, but i end up missing information if the workbook was last saved on a tab other than the 1st tab. How can i easily move back to cell A1 on the 1st tab of the workbook?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: How to find the 1st sheet of a workbook

    Hi sienahoops and welcome to the forum,

    Excel has lots of objects and most of them have an INDEX number that can be used to work with them. Worksheets have names and also index numbers. The first one (on the left) can be found using Worksheets(1)..

    Read http://msdn.microsoft.com/en-us/libr...ffice.11).aspx to see if it helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    mass, usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to find the 1st sheet of a workbook

    Quote Originally Posted by MarvinP View Post
    Hi sienahoops and welcome to the forum,

    Excel has lots of objects and most of them have an INDEX number that can be used to work with them. Worksheets have names and also index numbers. The first one (on the left) can be found using Worksheets(1)..

    Read http://msdn.microsoft.com/en-us/libr...ffice.11).aspx to see if it helps.
    Hi Marvin,
    That did the trick. Many thanks.

+ 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. How to find the 1st sheet of a workbook
    By sienahoops in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-15-2013, 08:00 PM
  2. find a formula to autopopulate one workbook sheet to another workbook
    By Aleaghh00 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-06-2013, 03:43 PM
  3. How to find if sheet exist in workbook
    By Harrij in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2013, 07:19 AM
  4. Find sheet names in other workbook
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2011, 04:29 PM
  5. Find sheet name in another workbook based on name from one workbook
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2010, 02:38 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