+ Reply to Thread
Results 1 to 3 of 3

Search cell value in another workbook and copy range from current to other workbook

  1. #1
    Registered User
    Join Date
    12-08-2013
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    70

    Search cell value in another workbook and copy range from current to other workbook

    Hi, stuck with a problem, any help much appreciated. I have 2 workbooks. 1 is where data is entered called wksPB, the other is like a database workbook. The wksPB has data to be feed from column B to F and there is a dropdown.

    what im looking to do is, if the combobox value is selected as Decline then it should display a messagebox that reference value in cell B is denied. if combobox value is Agreed then the macro should search the database workbook for the text entered in column b of wksPB and then copy data of C:E of wksPB to H:J of database sheet where that text is found and also the approver name in wksPB C24 to the approver cell of where that text was found. I've reached till finding the text but what I get my head twiting on is how to copy the text from wksPB column B:F to database sheet column H:K. Im attaching the sample workbooks and the code where ive reached till.

    would be grateful for any help.

    Please Login or Register  to view this content.
    many thanx for whatever help
    Attached Files Attached Files
    Last edited by SierraKilo78; 03-11-2014 at 12:33 PM.

  2. #2
    Registered User
    Join Date
    12-08-2013
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Search cell value in another workbook and copy range from current to other workbook

    I tried this. but it dies on the line highlighted. saying "Method 'Range' of object '_Worksheet' failed. please help

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-08-2013
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Search cell value in another workbook and copy range from current to other workbook

    solved it myself.

    did a:

    Please Login or Register  to view this content.
    before End Function and it all got sorted.

+ 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. Autofilter another workbook and copy range into current workbook
    By scottbass in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2014, 10:05 PM
  2. [SOLVED] Open Existing File and Copy Range to Current Workbook
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2013, 01:37 PM
  3. Macro, copy UNLOCKED cell range of sheet in open workbook to workbook template
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:18 AM
  4. copy cell value from another workbook to current workbook
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-09-2010, 10:25 AM
  5. Search within range for first populated cell and copy to new workbook
    By 1ceman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2006, 07: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