Setting variable to bookmark contents

D

David7284

Hi,

I've got a user form with a bookmark field called fullname. Later in the
document, I want to auto-display only the first name from the fullname
field (the contents form position 1 of fullname to the first space -the
space that separates the first and last names).

I've searched and tried seemingly everyting logical (obviously not
everything :) ), unfortunately, I can't seem to even store the entire
contents of "fullname" to the variable, much less extract a substring (mid
?) and display the results later in the doc.

Can someone please help point me in the right direction?

Thanks,
David
 
W

Word Heretic

G'day "David7284" <[email protected]>,

Check out the free back issues at www.editorium.co,

Wealth of stuff involving this, and Jack has several cheap tools to do
what you need. Regardless, the bookmark has a range, The range has
text. The text can be read into a string and you can use Instr and
InstrRev to find spaces etc.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


David7284 reckoned:
 

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