Write to word file from MS ACCESS VBA

S

SUNIL PATEL

I new MS Word VBA.

I am writing an application in MS ACCESS VBA. In one case
I want to send information (string data) what I read from
tables to MS Word Document. I manage to learn how to open
word document from MS ACCESS VBA. But still I could not
find command how to type each line in MS Word document
using VBA from MS ACCESS. I have MS WORD object library
available in my code. Only thing I want to know what
command I have to use to type a string programmatically in
MS Word. For example if have a mystring = "HAVE A NICE
DAY". I want to open word document and type mystring into
opened word document.

I will appreciate you in advance for all your help to make
my code work

Thanks

Sunil Patel
 
D

Doug Robbins - Word MVP

Hi Sunil,

See the article "Control Word from Excel" at:

http://www.mvps.org/word/FAQs/InterDev/ControlWordFromXL.htm

You do it the same way from Access.
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

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