+ Reply to Thread
Results 1 to 7 of 7

Returning information from separate workbook based on cell text

  1. #1
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Returning information from separate workbook based on cell text

    I am wondering if there is a formula that will import/export specific row information from one work book to anoither based on specific text that is entered into a cell range? I have attached three test sheets to help clarify what am looking to do. Basically, whenever "DELAYED" is selected in column "H" in workbook "TEST CREW 1" or "TEST CREW 2" I need information from the row to populate in the designated area on "PAR TEST". Any suggestions on how to make this happen automatically ??
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Returning information from separate workbook based on cell text

    Place this code into the worksheet modules of the crew workbooks.

    Please Login or Register  to view this content.
    This code activates when a cell in Column H becomes "DELAYED". It then copies specific ranges in the row and pastes the copied cells into the first empty cell after the last cell in column A, so you may have to rethink your PAR TEST set up.

    Anyway, it's a tool you can work on. and modify. Edit the cell ranges you want copied, merged cells will effect the code.
    Last edited by davesexcel; 11-26-2010 at 09:06 AM.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Returning information from separate workbook based on cell text

    Hi pdmkh,

    Without writing some VBA code you can get close to what you need by using an Advanced Filter on the Crew sheets and then cut and paste data over. Find the attached for an example. This doesn't automate the whole problem but gives you a start by filtering the Delayed to a single range.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Returning information from separate workbook based on cell text

    Thanks for the help. I have loaded the code into the Crew work book, I need some direction on entereing the correct location/address of the "PAR TEST" work book. Thanks again and please have patience.
    Set wb1 = Workbooks("PAR TEST")

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Returning information from separate workbook based on cell text

    Quote Originally Posted by pdmkh View Post
    ........... I have loaded the code into the Crew work book, I need some direction on entereing the correct location/address of the "PAR TEST" work book. .............
    Set wb1 = Workbooks("PAR TEST")
    What do you mean?

  6. #6
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Returning information from separate workbook based on cell text

    Thank you, thank you, thank you. This code is working. I originally had each work book opened individually on separate screens, when I entered "DELAYED" on the crew work sheet an error would appear in the code at "Set wb1 = Workbooks("PAR TEST")". I was trying to identify the issue later on a laptop and had both workbooks opened ontop of each other and the code worked. Any explanation on why this happens??. Also:
    1. Is there a way to have the "PAR TEST" workbook update without being opened?(I could have it as another work sheet in the CREW workbook)
    2. If the "DELAYED" text is changed to " DELAY COMP" can the copied text then be removed from the "PAR TEST". Sorry for so many questions but this is very close and would be a huge time saver for me.
    Last edited by pdmkh; 11-30-2010 at 11:17 AM.

  7. #7
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Returning information from separate workbook based on cell text

    1. Is there a way to have the "PAR TEST" workbook update without being opened?(I could have it as another work sheet in the CREW workbook)
    2. If the "DELAYED" text is changed to " DELAY COMP" can the copied text then be removed from the "PAR TEST". Sorry for so many questions but this is very close and would be a huge time saver for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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