Ive got a word document with a lot of merge fields which look like this:
{ MERGEFIELD SOME_FIELD }
This works fine with unformatted text. But now I want to insert formated text this way. So the content of "SOME_FIELD" will be created out of Rich Text, including cursive and bold parts and newlines.
Is there a way to use merge fields where the formating comes out of the content of the related field. It does not have to be rich text.
All I found until now are solutions with automation. Like this: Word VBA macro to insert file and merge formatting But this does not word for me because in the moment I write the content of SOME_FIELD I don't have access to automation.
SME_FIELD is set with access vba like this (in the example the formating is set with rich text but I can use another formating language too):
dim richText as string
richText = "Hey look, \b I'm bold \b0 and I'm not"
with CurrentDb.OpenRecordset("Select SOME_FIELD from SOME_TABLE")
Call .MoveFirst
!SOME_FIELD = richText
Call .Update
end with
I thought that there might be some other formating tags which word can read, but I did not find any.