+ Reply to Thread
Results 1 to 7 of 7

Use a macro to extract cell data from opened workbook to new opened workbook

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Question Use a macro to extract cell data from opened workbook to new opened workbook

    Hi,

    I'm having problems trying to figure out how to write a macro to extract information form one workbook to another. Here's what i need to do:

    step 1: I have the old excel file open along with the new workbook.
    step 2: I would like to have a macro button in the new workbook to extract the cell data from the other excel file that is open.

    If someone could help me i would appreciate it.

    Thanks,
    Brian

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    Could you be more specific on what "cell data" you want extracted?

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    Hi Brian,
    A simple code to transfer the date in cell A1 from one workbook to another:
    Please Login or Register  to view this content.
    Should do the trick..
    Noway Norway

  4. #4
    Registered User
    Join Date
    05-10-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    I guess I forgot to mention that the cell with the filename changes with every file. all I want to do is open both files and push the button.

  5. #5
    Registered User
    Join Date
    05-10-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    cell a1 is the main one that I need, it's the filename.

  6. #6
    Registered User
    Join Date
    05-10-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    Here is what i have so far.

    [CODE]Windows("file name changes.xls").Activate
    Sheets("IP").Select
    Range("F2").Select
    Selection.Copy
    Windows("DrawingDatabase.xls").Activate
    Range("A10").Select
    Selection.PasteSpecial (xlValues), Transpose:=True
    Application.CutCopyMode = False[/CODE

    is it possible for one workbook to see the other opened workbook? if so can it retrieve information in a cell in that opened workbook?

  7. #7
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Use a macro to extract cell data from opened workbook to new opened workbook

    will the sheet that the data you copy to always be the same?

+ 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: 0
    Last Post: 04-26-2013, 03:40 AM
  2. VBA button to store data from 1 workbook and paste it in another UN-opened workbook
    By mountaineerhughes in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-26-2012, 11:39 AM
  3. Replies: 1
    Last Post: 11-26-2011, 09:10 PM
  4. Excel 2007 : Macro when workbook is opened
    By colins in forum Excel General
    Replies: 5
    Last Post: 02-22-2010, 01:27 PM
  5. [SOLVED] How to run a macro as soon a a workbook (.xls) is opened?
    By Sangamesh Acharya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-15-2005, 08:20 PM

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