Results 1 to 3 of 3

Thread: Copy row from one workbook to another workbook based on conditions in two other workbooks

  1. #1
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0

    Copy row from one workbook to another workbook based on conditions in two other workbooks

    Hi,
    I am looking for a macro that will do the things mentioned below

    If coloumn I of 1.xls matches with column Z of ap.xls & column K of ap.xls is equals to column L of ap.xls Then
    Look column H of 1.xls & if column H of 1.xls is greater than column D of 1.xls then it has to copy the first row of OrderFormat.xlsx & pate it to BasketOrder.xlsx (in sheet1 & sheet1 name can be anything)

    Or

    If coloumn I of 1.xls matches with column Z of ap.xls & column K of ap.xls is equals to column L of ap.xls Then
    Look column H of 1.xls & if column H of 1.xls is lower than column D of 1.xls then it has to copy the third row of OrderFormat.xlsx & pate it to BasketOrder.xlsx (in sheet1 & sheet1 name can be anything)

    The output of the macro will be in BasketOrder.xlsx (I have mentioned the result plz see)

    Thnx For the Help
    Attached Files Attached Files

  2. #2
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,439
    Rep Power
    10
    Hi
    Quote Originally Posted by fixer View Post
    .... (I have mentioned the result plz see)
    It is not very clear what you mean.
    it is better if you always show a Before,
    and an
    After

    I will assume that your supplied , BasketOrder..xlsx is for After : See here
    https://excelfox.com/forum/showthrea...ll=1#post14183

    So

    Before
    _____ Workbook: BasketOrder.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    1
    2
    Worksheet: Sheet1 6July


    After running macro ( https://excelfox.com/forum/showthrea...ll=1#post14184 )

    _____ Workbook: BasketOrder.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    1
    NSE EQ NA NA NA
    0
    0
    BUY MARKET NA CLI MIS DAY WC5758 NA
    3
    NA
    2
    Worksheet: Sheet1 6July

    Macro here: https://excelfox.com/forum/showthrea...ll=1#post14184


    Alan




    OrderFormat.xlsx : https://app.box.com/s/kuzt08prbeyql5hpvn7bhd0vbgvbu4mo
    BasketOrder.xlsx : https://app.box.com/s/y05b4hglggc4iyodf8qqipbrhsjjpovk
    1.xls : https://app.box.com/s/38aoip5xi7018y9syt0xe4g04u95l6xk
    ap.xls : https://app.box.com/s/pq6nqkfilk2xs5lf19ozcpx081rp47vs
    macro.xlsm : https://app.box.com/s/z358r7tbc9hzthi539dlj49jsf4gyg8p


    Note: I use BasketOrder.xlsx
    You use BasketOrder..xlsx
    It is very stupid and dangerous to use an extra .
    But its your choice: You do all stupid things if you want to
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

  3. #3
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    Problem Solved
    Thnx Alot Doc Sir for helping me in solving this Problem
    Have a Great Day


    "You use BasketOrder..xlsx"
    I have not choosed it
    Its the system
    whenever i want to download the file everytime it puts this name to the file
    So I cant do Anything in that

Similar Threads

  1. Replies: 101
    Last Post: 06-11-2020, 02:01 PM
  2. Replies: 4
    Last Post: 04-10-2014, 10:58 PM
  3. Replies: 2
    Last Post: 09-18-2013, 12:30 AM
  4. Save Worksheets As Seperate Workbooks Based On Conditions
    By jffryjsphbyn in forum Excel Help
    Replies: 4
    Last Post: 07-17-2013, 07:15 AM
  5. Replies: 2
    Last Post: 05-28-2013, 05:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •