P
pvdalen
Hi all,
I've an Access db that writes to a Word document using bookmarks. I have
the template lined up just the way I want it; when the db writes info to the
template, the lines become offset by the difference in text length between
the bookmark and the data replacing the bookmark. For example, if
"McCracken" replaces "Last", the rest of the line is adjusted 5 places to the
right for the extra characters in "McCracken". If at all possible, I'd very
much like to have the system account for the extra spaces and delete them
during the process.
I was playing around with Word.Options.AutoFormatAsYouTypeInsertOvers and
Word.Options.Overwrite, but couldn't get them to work. Are one of these the
way to go? Or do I have to programmatically use the Len() function to
calcuate the difference in the text strings and then add/delete spaces? If
so, how exactly would that look?
I hope this made sense and thanks very much for your time and help.
Paul
I've an Access db that writes to a Word document using bookmarks. I have
the template lined up just the way I want it; when the db writes info to the
template, the lines become offset by the difference in text length between
the bookmark and the data replacing the bookmark. For example, if
"McCracken" replaces "Last", the rest of the line is adjusted 5 places to the
right for the extra characters in "McCracken". If at all possible, I'd very
much like to have the system account for the extra spaces and delete them
during the process.
I was playing around with Word.Options.AutoFormatAsYouTypeInsertOvers and
Word.Options.Overwrite, but couldn't get them to work. Are one of these the
way to go? Or do I have to programmatically use the Len() function to
calcuate the difference in the text strings and then add/delete spaces? If
so, how exactly would that look?
I hope this made sense and thanks very much for your time and help.
Paul