If. . .

J

Julie T.

Hi

I'm trying to write a macro for a label template. How can
I say, "If there is text in the first label, go to the
bookmark in the next label?" I know how to tell it to go
to a bookmark, but I don't know how to tell it, within the
If statement, to recognize whether or not there is text in
the label (which is of course a table cell).

Thanks!
 
J

Jonathan West

Hi Julie

Julie T. said:
Hi

I'm trying to write a macro for a label template. How can
I say, "If there is text in the first label, go to the
bookmark in the next label?" I know how to tell it to go
to a bookmark, but I don't know how to tell it, within the
If statement, to recognize whether or not there is text in
the label (which is of course a table cell).

Check the length of the string of the
ActiveDocument.Bookmarks("myBookmark).Range.Text property.
 

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