Results 1 to 2 of 2
  1. #1
    stu_C is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010

    Rich Text into Word document

    Hi all
    I use the below code (with a lot more fields) that converts from an access form into a word template using bookmarks.
    I have decided to use Rich Tech in the text box so we can bold stuff but I am having issues when it converts it now as the shows all the <DIV>, <strong> tags etc how can I stop this?
    Ideally what I wanted was to put something in bold in the text box to can copy this across into the word document

        Dim oWd  As Object 'Word.Application
        Dim oDoc As Object 'Word.Document
        Dim bm   As Object 'Word.Bookmark
        Set oWd = CreateObject("Word.Application")
        Set oDoc = oWd.Documents.Add(CurrentProject.Path & "\TemplateFiles\HRReportTemplate.docx")
       Set bm = oDoc.Bookmarks("PERSONALDETAILS")
       bm.Range.Text = [Forms]![FRM_FullCaseDetails]![HRReport]
       oWd.Visible = True
    End Function
    Also posted

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Copy OLE Object text to Word document
    By journeyman in forum Modules
    Replies: 1
    Last Post: 01-23-2023, 05:20 PM
  2. Replies: 3
    Last Post: 06-04-2017, 01:02 PM
  3. Replies: 4
    Last Post: 08-07-2015, 07:49 AM
  4. Poor Word Wrapping When Exporting Report to Rich Text File
    By caki2112 in forum Import/Export Data
    Replies: 11
    Last Post: 11-01-2012, 03:00 PM
  5. Rich Text Boxes (Word OLE vs ?)
    By nichojo in forum Programming
    Replies: 1
    Last Post: 08-30-2010, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Other Forums: Microsoft Office Forums