Avatar of timohorn
timohorn
Flag for Netherlands asked on

change fontsize of bookmark in vba exporting data from msaccess to word

I want toc hange the fontsize of bookmark in vba when exporting data from msacces to a word template.

i use

With .Bookmarks("Namen").Range
.Bookmarks("namen").Range.Font.Size = 12
        .Text = strText1
End With

but that does not do the trick
Microsoft WordMicrosoft Access

Avatar of undefined
Last Comment
GrahamSkan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
wobbled

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
kmslogic

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
timohorn

ASKER
Both answers worked, almost on the same time, so i split the points.<br /><br />I hope you're not offended.<br /><br />Thanxs<br /><br />Timo
GrahamSkan

Note that it can be done in one step - there is no need to Select the Range.

ActiveDocument.Bookmarks("Namen").Range.Font.Size = 8
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck