+ Reply to Thread
Results 1 to 2 of 2

VBA: open workbook, find values, paste into next available cell in other wokbook

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    3

    VBA: open workbook, find values, paste into next available cell in other wokbook

    OK, so I have a specific requirement, but not sure how to write the VBA:


    1. The user will open a workbook titled "Generator.xls" that contains a [Create] button.
    2. When clicked, the user is given the option the browse .xls files on their computer.
    3. The user will select the file they want to open.
    4. If (on the workbook opened at step 3) a cell in column A = "Data" AND the corresponding cell in column B = "Open", I want to copy the corresponding cell in column C, and paste the value into the next available cell in Column A, Sheet1, "Generator.xls" workbook.


    I want this to repeat until all values have been pasted.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: VBA: open workbook, find values, paste into next available cell in other wokbook

    Place this macro in a regular module in your "Generator.xls" workbook. Assign it to the "Create" button you have.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Macro to open another workbook and paste values to a sheet
    By jono7gold in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 07:08 AM
  2. [SOLVED] help with data from a second wokbook in the open workbook
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2014, 06:18 AM
  3. VBA code to open new workbook and copy and paste special values
    By oddinho2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 11:24 PM
  4. Open workbook, filter values, copy/paste into Active workbook.
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 12:17 PM
  5. [SOLVED] Open workbook and paste in first empty cell
    By tomant_123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-02-2013, 09:13 AM
  6. [SOLVED] Find and open workbook.xls from cell A1 and search for value from A2 in that workbook
    By ANDREWA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-18-2012, 07:50 PM
  7. Macro to open workbook and copy and paste values in to orig workbo
    By Dena X in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-15-2005, 08:20 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