+ Reply to Thread
Results 1 to 9 of 9

Macro Target Cell

  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Macro Target Cell

    I found this macro online and it does what I need it to do....except I want it to list the sheet names start in cell A11. How do I fix that?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Macro Target Cell

    Try this:

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Target Cell

    Hi km,

    This will list them on the ActiveSheet, omitting the ActiveSheet name:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    04-28-2013
    Location
    Poznań/Poland
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Macro Target Cell

    Hello,

    Sub list_of_sheets_name()
    k=10
    for each sh in thisworkbook.sheets
    k=k+1
    Range("A" & k) = sh.name
    next sh
    End Sub

  5. #5
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Macro Target Cell

    Thank you thank you! Is there any way to have it list only the worksheets between certain names? For example...here is my list of WS....What I'm really aiming for is a list of customers...everytime someone sends me a new order, I copy my Template worksheet to a new sheet and rename it with the customer's name.

    I'd like to then go into the "Summary" WS (not shown) and update the list of customers....this WS then pulls data I need for reporting.

    So I really don't need these ones to show:
    1. Item List
    2. Shipping and Tax
    4. Template
    AAAAA
    ZZZZZ
    Sheet36


    Hopefully this makes sense.

    This is the list of all of my worksheets, aside from the Summary Sheet that this list will go into.
    1. Item List
    2. Shipping and Tax
    4. Template
    AAAAA
    Customer Name 1
    Customer Name 2
    Customer Name 3
    Customer Name 4
    Customer Name 5
    Customer Name 6
    Customer Name 7
    Customer Name 8
    Customer Name 9
    Customer Name 10
    ZZZZZ
    Sheet36

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Target Cell

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Macro Target Cell

    That worked! Thank you so much!

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Target Cell

    You're welcome and thanks for the rep!

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Target Cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. Replies: 3
    Last Post: 10-29-2013, 12:06 AM
  2. [SOLVED] Adjust a macro to check for content of a cell and then run a macro on target sheet
    By dreddster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2013, 04:37 AM
  3. Replies: 5
    Last Post: 01-22-2013, 11:38 AM
  4. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM
  5. Skip macro for row when target cell has value
    By Rigano in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2010, 03:31 AM

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