+ Reply to Thread
Results 1 to 4 of 4

Macro Help

  1. #1
    Registered User
    Join Date
    07-06-2005
    Posts
    15

    Macro Help

    Is it possible to create macro/VB that can generate something like the below example.

    Input data:

    NAME ID CODE NUM SOURCE
    JEEY 3 HYX 11 B
    JEEY 33 HYX 55 A
    JEEY 43 HYX 1 B
    FRAN 88 BTY 5 A
    FRAN 78 BTY 88 B


    Using Name,Code and the Source as the key - the report should look like this:
    Desired result:

    NAME ID CODE NUM SOURCE
    JEEY 33 HYX 55 A
    ............................ JEEY 3 HYX 11 B
    ............................ JEEY 43 HYX 1 B
    ----- ----- ----- ----- ----- ----- -----
    FRAN 88 BTY 5 A ...... FRAN 78 BTY 88 B

    The actual result:
    A - Left side
    B - Right side

    Thanks
    Jimmy
    Last edited by sanjimmy; 11-01-2006 at 08:40 PM.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by sanjimmy
    Is it possible to create macro/VB that can generate something like the below example.

    Input data:

    NAME ID CODE NUM SOURCE
    JEEY 3 HYX 11 B
    JEEY 33 HYX 55 A
    JEEY 43 HYX 1 B
    FRAN 88 BTY 5 A
    FRAN 78 BTY 88 B


    Using Name,Code and the Source as the key - the report should look like this:
    Desired result:

    NAME ID CODE NUM SOURCE
    JEEY 33 HYX 55 A
    ............................ JEEY 3 HYX 11 B
    ............................ JEEY 43 HYX 1 B
    ----- ----- ----- ----- ----- ----- -----
    FRAN 88 BTY 5 A ...... FRAN 78 BTY 88 B

    The actual result:
    A - Left side
    B - Right side

    Thanks
    Jimmy
    So, you want to list source A items on the left, source items B on the right, << just read the rest of your post, you said that.
    is there a source other than A/B ?
    Is the list pre-sorted ?
    what is the required sort sequence if not pre-sorted ?
    Incrementing ID or decreasing Num ?
    ---

    perhaps the question should have been:
    if FRAN 88 BTY 5 A ...... FRAN 78 BTY 88 B
    ie, Fran BTY A & B
    fit on a row, why doesn't
    JEEY 33 HYX 55 A
    ............................ JEEY 3 HYX 11 B
    ie, JEEY HYX A & B
    ?
    Last edited by Bryan Hessey; 11-01-2006 at 09:04 PM.
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    07-06-2005
    Posts
    15
    Bryan,
    Here is what I would like to see in my result.

    In my input data:
    If the Code and Name matches by source ( A and B) then would like to
    list the records from source A on the left side (ex. column A1 B1 C1 D1 E5) and Source B (ex. column F1 G1 H1 I1 K1) on the Right side.

    Another words, I would like to move all the record's from the Source B on the right side of the spreadsheet ..underneath the corresponding Source A record.

    Let me know if this NOT clear yet.

    Thanks.

    Jimmy

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by sanjimmy
    Bryan,
    Here is what I would like to see in my result.

    In my input data:
    If the Code and Name matches by source ( A and B) then would like to
    list the records from source A on the left side (ex. column A1 B1 C1 D1 E5) and Source B (ex. column F1 G1 H1 I1 K1) on the Right side.

    Another words, I would like to move all the record's from the Source B on the right side of the spreadsheet ..underneath the corresponding Source A record.

    Let me know if this NOT clear yet.

    Thanks.

    Jimmy
    That is a re-statement of what you want, but does not answer my question, which was:

    if FRAN 88 BTY 5 A ...... FRAN 78 BTY 88 B
    ie, Fran BTY A & B
    fit on a row, why doesn't
    JEEY 33 HYX 55 A
    ............................ JEEY 3 HYX 11 B
    ie, JEEY HYX A & B


    Try the attached (version 2). (run Macro4)

    ---
    Attached Files Attached Files
    Last edited by Bryan Hessey; 11-02-2006 at 03:31 AM.

+ 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