+ Reply to Thread
Results 1 to 4 of 4

VBA / Macro for creating new worksheets and new columns from existing worksheets

  1. #1
    Registered User
    Join Date
    07-25-2006
    Posts
    11

    Unhappy VBA / Macro for creating new worksheets and new columns from existing worksheets

    Please excuse my ignorance after searching for hours I have yet to find an answer to my problem. I am trying to create a new worksheet from two existing worksheets of similar data.

    Worksheet1
    Organisation | Name | Telephone | Email
    AAA | orange | 123456 | [email protected]
    BBB | pink | 5646546 | [email protected]
    FFF | white | 989865464| [email protected]
    HHH | black | 546786 | [email protected]

    Worksheet2
    Organisation | name | Telephone | Email
    AAA | purple | 8885555 | [email protected]
    FFF | blue | 222111 | [email protected]
    BBB | silver | 654554 | [email protected]

    Here’s what the end result should look like
    Worksheet3
    Organisation | Name | Telephone | Email | Name2 | Telephone2 | Email2
    AAA | orange | 123456 | [email protected] | purple | 8885555 | [email protected]
    BBB | pink | 5646546 | [email protected] | BBB | silver | 654554 | [email protected]
    FFF | white | 989865464| [email protected] | blue | 222111 | [email protected]
    HHH | black | 546786 | [email protected] | N/A | N/A | N/A

    Many thanks in advance.

  2. #2
    Tom Ogilvy
    Guest

    RE: VBA / Macro for creating new worksheets and new columns from exist

    copy the "master" list. Then use the vlookup worksheet formula to pull over
    the data from the other list.

    See Excel Help for Vlookup. No VBA is required.

    If you want to use VBA, then incorporate the vlookup function in your code
    to do all the hard work.

    --
    Regards,
    Tom Ogilvy


    "webby2006" wrote:

    >
    > Please excuse my ignorance after searching for hours I have yet to find
    > an answer to my problem. I am trying to create a new worksheet from two
    > existing worksheets of similar data.
    >
    > Worksheet1
    > Organisation | Name | Telephone | Email
    > AAA | orange | 123456 | [email protected]
    > BBB | pink | 5646546 | [email protected]
    > FFF | white | 989865464| [email protected]
    > HHH | black | 546786 | [email protected]
    >
    > Worksheet2
    > Organisation | name | Telephone | Email
    > AAA | purple | 8885555 | [email protected]
    > FFF | blue | 222111 | [email protected]
    > BBB | silver | 654554 | [email protected]
    >
    > Here’s what the end result should look like
    > Worksheet3
    > Organisation | Name | Telephone | Email | Name2 | Telephone2 | Email2
    > AAA | orange | 123456 | [email protected] | purple | 8885555 |
    > [email protected]
    > BBB | pink | 5646546 | [email protected] | BBB | silver | 654554 |
    > [email protected]
    > FFF | white | 989865464| [email protected] | blue | 222111 | [email protected]
    > HHH | black | 546786 | [email protected] | N/A | N/A | N/A
    >
    > Many thanks in advance.
    >
    >
    > --
    > webby2006
    > ------------------------------------------------------------------------
    > webby2006's Profile: http://www.excelforum.com/member.php...o&userid=36744
    > View this thread: http://www.excelforum.com/showthread...hreadid=564666
    >
    >


  3. #3
    Registered User
    Join Date
    07-25-2006
    Posts
    11
    Dear Tom,

    Thank you for sharing your knowledge. I am very happy indeed and it worked a treat. Never seen/used this function before and today I have gained great knowledge, the wizard looks complicated but once I saw the formular I was able to produce others bypassing the wizard altogether.

    Thanks once again.

  4. #4
    Registered User
    Join Date
    07-25-2006
    Posts
    11
    Dear Tom,

    Thank you for sharing your knowledge. I am very happy indeed and it worked a treat. Never seen/used this function before and today I have gained great knowledge, the wizard looks complicated but once I saw the formular I was able to produce others bypassing the wizard altogether.

    Thanks once again.

+ 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