+ Reply to Thread
Results 1 to 3 of 3

Search for tab in another workbook, name of tab in in a cell in active sheet

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    64

    Search for tab in another workbook, name of tab in in a cell in active sheet

    Hi all,

    I have a sheet and I want to use a name in a cell that corresponds to a tab in another workbook. So say in cell U11 in the active work sheet is the name of the tab in another sheet which is "Cat" so below works for me if it is hard keyed into the macro;

    Please Login or Register  to view this content.
    Now I want to change the tab name in the active sheet to "Dog" and then I would have to go into the macro and change "Cat" to "Dog" to make it work.

    Is there a better way to do this by instead of puttin "Cat" or "Dog" into the macro I can just put the name in cell U11 which is will reference?

    Cheers,

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Search for tab in another workbook, name of tab in in a cell in active sheet

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-21-2017
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    64

    Re: Search for tab in another workbook, name of tab in in a cell in active sheet

    Hi Cytop,

    thanks for that but not sure if I have got it working properly, the sheet name for the fromSheet is in U10 and previously specified so can I substitute ("SheetNameHere") with ("fname")?

+ 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. [SOLVED] save active sheet in new workbook, naming it as cell value of active sheet
    By arkharova.s in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2014, 06:16 AM
  2. Macro to Print active sheet as PDF to Active workbook and customize name
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 08:52 PM
  3. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  4. Replies: 0
    Last Post: 04-28-2012, 06:06 PM
  5. Search for Value in Closed Workbook and copy Column to Active Sheet Column BE
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-19-2011, 12:57 PM
  6. how can worksheet_activate event of active sheet work of active workbook
    By tahir mahmood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2011, 08:19 AM
  7. [SOLVED] Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 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