Editing bookmarks in Word using late binding

T

Tommy

Hello!

Does anybody know how to insert text into bookmarks in Word using late
binding? If I use early binding everything works fine.
What I want to implement is somthing like this:

for (int i = 1; i <= document.Bookmarks.Count; i++)
{
object objI = i;
document.Bookmarks.get_Item(ref objI).Range.Text = "Some text";
}

but using late binding instead.
 
S

Suzanne S. Barnhill

Given that this is a VBA question, it would be better posted in one of the
word.vba newsgroups. This one is for end users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top