Problems reading text from document to VBA

A

Andreas

Hi

I'm struggeling with some VBA code as I'm quite new to this...

I have created a template that pops up an Form dialog when a user
opens the document. In this form the user can fill in header
information for the documetn (like from and to adresses).

The thing is then that I'd like to make it possible for the user to
open this window again if he so desires. In that case I'd like to have
the information in the document to be present in the form. How can I
manage this?

The bookmarks I'm using are located inside a table. Something like
this:
(All text will be in the Start cell, the other cell is just for the
end book mark)
-----------------------------------
|[StartBookMark} | [EndBookMark] |
-----------------------------------

*But when I try to read all text from start to end I get some junk
characters as well (a linebreak P and a solid dot).

*If I try to add the bookmarks in the same cell, it either delets the
end bookmark or the text dosn't end up between the book marks on an
insert.

*I've also tried to use the BookMark("\Cell"} after setting the
selection to the StartBookMark. But then it doesn't seem to rember the
changes I make in the document only the one in the form. So if I
delete the text in the start cell and opens the form, it somehows
remembers the text that was there.

To sum up it all...
I'd like to be able to write from a form to a document on a specific
location. Then I'd like to read from the document to the form from a
specific location.

Please assist
 

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