Results 1 to 9 of 9

Refering to sheets number instead of name

Threaded View

  1. #1
    Registered User
    Join Date
    09-01-2015
    Location
    Tokyo
    MS-Off Ver
    2013
    Posts
    7

    Refering to sheets number instead of name

    Hello everyone,

    I'm new to excel in professional environment and thus am seeking for help.

    Basically I want to automate some of my work using macros in excel.

    I am working with a workbook which gets a new spreadsheet daily or every other day. When adding a new sheet, so far, I manually type formulas such as VLOOKUP in order to get data from an older sheet within the same workbook. So far I am able to write an macro, that uses the name of sheets as reference (just like in formulas). But what I want is that it uses the order number of the sheet instead. This way when running the macro on a new sheet, it would always use the most recent other sheet (the one, one to the right). I know the command Sheets(3).Select. for VBA, but this hasnt worked out for me yet, because I want it to refer inside a formula...

    Also, I would prefer not to use the INDIRECT formula...

    I am looking forward to your suggestions.

    Kind regards.
    Last edited by mrjed; 09-01-2015 at 04:09 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Refering certain rows in other sheets based on a particular condition
    By werunom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2013, 09:32 PM
  2. If statment refering to three sheets
    By Dancingdad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2012, 01:36 AM
  3. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 12:42 PM
  4. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:08 AM
  5. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:07 AM
  6. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:01 AM
  7. Refering to sheets positioned after current sheet
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2010, 03:12 PM
  8. refering to different sheets
    By vigo in forum Excel General
    Replies: 0
    Last Post: 08-06-2008, 01:55 AM

Tags for this Thread

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