+ Reply to Thread
Results 1 to 4 of 4

Activate Workbook knowing only the Worksheet name

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Indianapolis
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    9

    Unhappy Activate Workbook knowing only the Worksheet name

    I am trying to move data from one open workbook (call it "Report") to another open workbook (call it "Data"). There are two issues; (1) the user could have many workbooks open and (2) the workbook name (Data) will always vary (users will name the "Data" file differently based on Customer name).
    One thing, the workSHEET name ("Writedown") within the workbook "Data" will never change. No other files will have a tab named "Writedown". I have the code for everything but this.
    For example, how do I move cell A1 on sheet1 in workbook "Report"; then find the worksheet tab/name "Writedown" among all open workbooks and copy contents to cell A1? Thank you

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Activate Workbook knowing only the Worksheet name

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    04-08-2014
    Location
    Indianapolis
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    9

    Re: Activate Workbook knowing only the Worksheet name

    That worked perfectly. Sorry it took so long to say thank you, I didn't expect to get a reply at the speed of light. I spent 2 hours trying to figure it out unsuccessfully... took you less than 10 minutes to solve. Thank you very much!

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Activate Workbook knowing only the Worksheet name

    You're welcome. Thanks for the feedback.

+ 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. Hyperlink to activate cell(s) in other worksheet of same workbook
    By milt2010 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2016, 06:20 PM
  2. [SOLVED] how to activate a specific worksheet of a workbook
    By amethystfeb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2014, 11:51 AM
  3. [SOLVED] Activate chart on worksheet, without knowing chart name or index number
    By d.sanchez in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-18-2013, 12:51 PM
  4. Activate the highest/newest worksheet in a workbook
    By Belgarath75 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2011, 08:31 PM
  5. VBA code to activate second-to-last and last worksheet tabs in a workbook?
    By Nickster64 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2008, 04:01 PM
  6. activate last worksheet in a different workbook
    By Aaron in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2006, 06:55 AM
  7. Replies: 0
    Last Post: 02-07-2006, 01:50 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