+ Reply to Thread
Results 1 to 5 of 5

Export data to Word

  1. #1
    Registered User
    Join Date
    04-04-2007
    Posts
    8

    Cool Export data to Word

    Sorry if this has been asked before, I have tried to find a similar post.

    I'm a complete newbie when it comes to VB, Excel and Word other than the most basic of use.

    My question is this, I have a word document which I would like to automatically populate data from Excel into.

    For instance

    ------A---------B----------C--------D-----------E----------F

    1----Fred------Blue------12345-----Left-------£55.55-----abcde
    2----John------Red------54321-----Right------£99.99-----edcba



    I would like to extract the data from A1, B1, C1, E1 into one word document.

    Then work down the list and extract A1, B1, C1, E1 into another word document.

    The colums I wish to export will be the same, it's only the row that will change. Ideally I would like to add a button at G1, G2, G3, G4 etc and by the clicking of this button the word document is created.

    I would then be looking at adding the Word document automatically to an email to the person in the A column, their names would already be stored in Outlooks address book.

    If I'm asking too much then please tell me, if the facility to do this is too difficult equally let me know. If however, there is a place on the net where someone has done the hard work and is offering the code, then please let me know.

    Any help appreciated.

    Piers
    Last edited by piersuk; 08-30-2007 at 02:30 PM.

  2. #2
    Forum Contributor
    Join Date
    03-24-2004
    Location
    Edam Netherlands
    Posts
    181
    This maybe a start

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-04-2007
    Posts
    8
    Very kind, thanks.

    What do i do with the code though? I did say I was a complete novice sorry to sound daft

    Thanks

    Piers

  4. #4
    Registered User
    Join Date
    04-04-2007
    Posts
    8

    Thumbs up

    Quote Originally Posted by Kaak
    This maybe a start

    Please Login or Register  to view this content.

    Thanks Kaak,

    I managed to use the code and running the macro I see how it should work, trouble is that all it does is open a blank word document and does not send any of the data from A1, D1, E1 etc across.

    Suggestions appreciated.

    Thanks
    Piers

  5. #5
    Forum Contributor
    Join Date
    03-24-2004
    Location
    Edam Netherlands
    Posts
    181
    These lines assume youo have inserted 4 formfields in your document
    and fills these with data from row iRow

    Please Login or Register  to view this content.

+ 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