Closed Thread
Results 1 to 10 of 10

Copy text in excel cells and paste as bullet into new word doc

  1. #1
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Copy text in excel cells and paste as bullet into new word doc

    Dear excel gurus,
    I have a simple excel sheet with columns A (name1) B (name2) C (name3) D (name4) E (name5) F (text). A given name can only appear once in any given row.

    I am looking for a vba code (Excel 2003) that would loop through cells in A1:E?? (number of rows varies, loop needs to find last non-empty row in column A) and look for a particular name (e.g. "Stefan Thomas"):
    1) create new unnamed word doc
    2) Put "New Annex" as a header (top right) in the new word doc
    3) Insert text "List for Stefan Thomas" centered and underlined as the first line of the new word doc. The document will have two sections:
    4) Insert text "Items in Column A" bolded and aligned to the left
    5) Insert text "Items in Column B to E" bolded and aligned to the left below the section in 4
    6) if "Stefan Thomas" is in column A, copy text in column F and paste in word doc as first bullet (below title "Items in Column A")
    7) repeat step 6 for all other instances of "Stefan Thomas" in column A (append text as next bullet in section "Items in Column A")
    8) If "Stefan Thomas" is in column B or C or D or E (can only appear once per row), copy text in column F and paste in word doc as first bullet (below title "Items in Column B to E")
    9) repeat step 8 for all other instances of "Stefan Thomas" in column B or C or D or E (append text as next bullet in section "Items in Column B to E")

    Infinite thanks for your help!

    PS: would appreciate if you could indicate in the code how I can choose the type of bullet as well as space between bullets and font type

    For lack of answers, have also posted at http://www.mrexcel.com/forum/excel-q...-word-doc.html
    Last edited by olivierpbeland; 11-03-2013 at 11:22 AM. Reason: Cross post

  2. #2
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Please let me know if clarifications are needed. Thanks
    Last edited by olivierpbeland; 11-02-2013 at 10:50 AM.

  3. #3
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Bumping the post
    Last edited by olivierpbeland; 11-02-2013 at 02:40 PM. Reason: Bump

  4. #4
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Bumping again

  5. #5
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Bump post again

  6. #6
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Is it allowed to bump post like this?

  7. #7
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Have also posted in commercial forum. Please let me know if i need to add more points to have this solved. Thanks!

  8. #8
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Not a single reply yet. Why?

  9. #9
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Copy text in excel cells and paste as bullet into new word doc

    Bumping again...

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Copy text in excel cells and paste as bullet into new word doc

    Because you have posted in the Commercial Services Sub-Forum, this thread will now be closed and you may continue in the Commercial Services Area.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-16-2013, 05:36 AM
  2. [SOLVED] Copy table in excel and paste as text in word
    By himanshu83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2012, 10:50 AM
  3. Copy/paste cells to word header from excel
    By scifo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2010, 03:24 AM
  4. Copy text from excel and paste in word - Urgent Help
    By sippy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2006, 04:51 PM
  5. [SOLVED] How to copy cells excel data and paste them under MS Word bookmark
    By Bon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2006, 11:40 AM

Tags for this Thread

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