+ Reply to Thread
Results 1 to 6 of 6

adjust my existing macro

  1. #1
    Registered User
    Join Date
    09-03-2008
    Location
    Royal Oak, MI
    Posts
    18

    adjust my existing macro

    I don't know how to adjust my existing code to get it to do what I'm looking for. I'd love the help. I am attaching 3 excel files.

    lctest-2A.xls = the source data
    lctest-2B.xls = the source data after running my macro on it
    lctest-2C.xls = the a snippet of the source data after I have manually edited it to show you how I want the macro to operate

    the current macro basically looks through column K to find a $... each $ is used as a delimiter. The fields that are created as a result of being split off from column K are then moved to their own rows. Once they are moved to their own rows, data from field A is copied down, Column B is filled with "See also " then the data from column k of the "source row" AND the date which is found in the last 4 characters of column f of the "source row."

    the macro I am looking for will have an identical result with the major exception that instead of splitting column K at each & and then moving all of the newly created fields to their own rows, the source row will be kept in tact. So, basically Column K of the source row will contain multiple family names, but the macro will still create new rows with duplicates of the all of the family names (no duplicate of the first listed family name should be created).

    This has been difficult for me to explain, so I understand if it is difficult to understand. Please ask questions if you need to. I am attaching the files to give you a visual aid... i figure it will be very helpful.

    Here's the current code..

    Please Login or Register  to view this content.

    Pete
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe like this:
    Please Login or Register  to view this content.
    See attached.
    Attached Files Attached Files
    Last edited by shg; 11-16-2008 at 03:58 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-03-2008
    Location
    Royal Oak, MI
    Posts
    18
    this post can be deleted...
    I don't know how... sorry
    Last edited by jpfulton; 11-17-2008 at 02:35 PM.

  4. #4
    Registered User
    Join Date
    09-03-2008
    Location
    Royal Oak, MI
    Posts
    18
    Quote Originally Posted by shg View Post
    Maybe like this:
    Please Login or Register  to view this content.
    See attached.
    Thanks for replying! Unfortunately this is just a little bit off... I'm looking for the macro to not carry down fields in columns C, D, E, F, G, H, I, and J... you got columns A, B, and K you got perfectly...

    if you can adjust the code for me again... i'd really appreciate it.

    Thanks.
    Last edited by jpfulton; 11-17-2008 at 02:34 PM. Reason: I double posted... having trouble b/c site is very slow.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    See attached. Running the macro copies the data from input to output, and then processes.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-03-2008
    Location
    Royal Oak, MI
    Posts
    18
    Quote Originally Posted by shg View Post
    See attached. Running the macro copies the data from input to output, and then processes.
    Thank you thank you thank you.

    As far as I can tell this is perfect... i will find out for sure as I work with this data over the next few days.

    Thank you!!

+ 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