send data from vb to word

E

Eggert

hi, i'm from germany, and i try to
explain my problem:
i define a public class in vb and i can reference that class
in word.
but how can i put data from vb to word in the way like:
call "wordmakro"(transferclass) or
set word.class = vb.class?
can you help me?

until later

eggert
 
W

Word Heretic

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

Method 1

Set a bookmark in the document, or otherwise establish a range with a
Find or something. Now we have a place to put it in - the range.
Ranmge.InsertAfter blah or even Range.Paste for RTF stuff.

Method 2

(Simple values only)

Insert a document or custom document property field directly into the
document and use VBA to update the underlying value of this.



Eggert said:
hi, i'm from germany, and i try to
explain my problem:
i define a public class in vb and i can reference that class
in word.
but how can i put data from vb to word in the way like:
call "wordmakro"(transferclass) or
set word.class = vb.class?
can you help me?

until later

eggert

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA 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