+ Reply to Thread
Results 1 to 4 of 4

insert sheet name into a macro by cell reference

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    herts
    MS-Off Ver
    Excel 2010
    Posts
    17

    insert sheet name into a macro by cell reference

    Hi,

    Macros are not my strong point, but id like to set up an auto print option on a report ive built
    however the print option would only be relevant to the specific months tab
    e.g Aug (tab name)

    I know the code to name a specific sheet is Sheet ( "aug").select

    but I don't want to change the macro every month so was hoping to drive the macro from a cell reference which I would have set as a list

    is it possible to have the "aug" as a cell reference ? so it would switch print options driven by the tab name change

    sorry if ive not explained this very well

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

    Re: insert sheet name into a macro by cell reference

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    herts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: insert sheet name into a macro by cell reference

    Perfect, many thanks John

  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: insert sheet name into a macro by cell reference

    You're welcome. Glad to help out.

+ 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. Using Macro to change cell color based on reference cell value in different sheet
    By Emma Ford in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2015, 03:51 AM
  2. Macro to insert cell comments from a list in another sheet
    By Bambina in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-02-2015, 09:02 AM
  3. macro to insert data in cell in Workbook1 for reference in Workbook2
    By Meowfunk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 11:57 AM
  4. Macro to insert cell values in another sheet depending on value and format
    By adw223 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2013, 03:57 PM
  5. Cell reference from another sheet in autofilter macro
    By feddon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2011, 05:45 AM
  6. Insert Sheet Reference in INDIRECT
    By Yendorian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2011, 08:55 AM
  7. Reference a sheet as a key to insert data.
    By gibby3164 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2008, 01:10 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