+ Reply to Thread
Results 1 to 3 of 3

VB code to get data from closed file with criteria

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB code to get data from closed file with criteria

    Hello:

    Please refer to 2 attached file.

    I have data in Closed workbook "Transfer-ClosedFile" at location shown in cell B1 in attached file "TransferMacro.xlsb"

    I need macro in file "TransferMacro.xlsb" which needs to do following.

    Based on what is in cell B3 in "TransferMacro.xlsb" , I need to bring all data related to that cell and paste at C9.

    I have manually pasted data in File "TransferMacro" file, If B3 is CW.

    Let me know if any questions

    Thanks

    Riz
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB code to get data from closed file with criteria

    Hello:

    Can anyone, help with this.
    Thanks

    R

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: VB code to get data from closed file with criteria

    Hello Riz,

    The attached workbook is the same one you posted with the macros below added to it. Now when the selection in "B3" changes the macro will run and add the data starting at "C9" on "Sheet1".

    ThisWorkbook Module
    Please Login or Register  to view this content.
    Sheet1 Change Event Code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] VB Code to compare with closed file and highlight if not found.
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2017, 10:05 PM
  2. Export data with two Criteria values from closed workbook to closed workbooks VBA
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2016, 01:56 PM
  3. [SOLVED] VB Code to extract certain data from closed csv file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2016, 03:30 PM
  4. [SOLVED] VB Code to import from closed excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-18-2015, 06:53 PM
  5. update code for inserting data in all closed file in folder
    By mokht in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2015, 07:14 PM
  6. [SOLVED] Need help with syntax with vba code for removing duplicates from closed file and copy data
    By dj_mix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2013, 11:49 AM
  7. Code to replace closed workbook file name
    By Meli602 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2008, 01:22 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