Results 1 to 10 of 565

Thread: Tests Copying, Pasting, API Cliipboard issues. and Rough notes on Advanced API stuff

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,521
    Rep Power
    10
    In support of this main Forum Thread:
    http://www.excelfox.com/forum/showth...1393#post11393

    Test file: target1.xlsx
    _____ Workbook: target1.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
    1
    2
    1
    100
    1
    2
    3
    2
    100
    1
    2
    4
    Worksheet: Tabelle1


    Test file: (Before) target2.xlsx
    _____ Workbook: target2.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    1
    2
    1
    1234
    3
    3
    1234
    4
    Worksheet: Tabelle1


    Now run macro Sub Vixer() , which should fulfil this logic...
    ...If column E of target1.xlsx matches with column A of target2.xlsx then look column O of target1.xlsx is greater or column P of target1.xlsx is greater, whichever is greater calculate the 0.50% of that and multiply that with column K of target1.xlsx and paste the result to target2.xlsx from column C(if column C has data then column D and if column D has data then column E and so on...) the result should be in minus means whatever is the result put minus sign in that along with result

    The main macro file , macro.xlsm , gets populated thus:

    _____ Workbook: macro.xlsm ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    1
    column A of target2.xlsx column E of target1.xlsx column K of target1.xlsx column O of target1.xlsx column P of target1.xlsx
    2
    1
    1
    100
    1
    2
    3
    3
    2
    100
    1
    2
    4
    Worksheet: Tabelle2


    The test file, target2.xlsx , now gets changed to this
    Test file results After target2.xlsx

    _____ Workbook: target2.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    1
    2
    1
    1234
    -1
    3
    3
    1234
    4
    Worksheet: Tabelle1

    macro_ xlsm from Alan.jpg : https://imgur.com/pyf13dA
    Attachment 2347)
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Some Date Notes and Tests
    By DocAElstein in forum Test Area
    Replies: 5
    Last Post: 03-26-2025, 02:56 AM
  2. Replies: 116
    Last Post: 02-23-2025, 12:13 AM
  3. Replies: 21
    Last Post: 12-15-2024, 07:13 PM
  4. Replies: 42
    Last Post: 05-29-2023, 01:19 PM
  5. Replies: 11
    Last Post: 10-13-2013, 10:53 PM

Posting Permissions

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