Results 1 to 10 of 10

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

Threaded View

  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

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