insert rich text (html format) from acces to word 2013

nikolaus.hofer

New member
Local time
Today, 18:49
Joined
Jul 24, 2014
Messages
1
Hello guys

I'm quite new here in this forum so please excuse me if i miss anything.

I'm about to connect my DB to word. So I made a form where the user has to choose what entry to export. The data is inserted in a word file in different bookmarks. But there is one special task to insert the rich text so in this case the html formatted text is displayed like this:
Code:
<html><div>asdf</div></html>

My Text is inserted like this:
Code:
wdApp.ActiveDocument.Bookmarks("-Bookmarkname-").Range.Text = Lrs("-ColumnName-")
Lrs is a Recordset.

So how is it possible to display the html code right in the Word doc?

Thank you for your help
Niki
 
You're better off asking Word experts for this. You're using the Word VBA Object from Access so the code is pure Word.
 

Users who are viewing this thread

Back
Top Bottom