put VBA code into VB

F

Feng

Hi,

I'm trying to put a VB word macro into VB. It involves word specific variables and properties like Word.Range, wdFieldSet, Application.ScreenUpdating and ActiveDocument.PrintOut. I'm using VB .net, but it does not recognize these variables and properties. Does anyone know what libraries I need to add so that it does?
 
J

JGM

Hi Feng,

Have you tried adding the Word library to your VB project?

Cheers!

--
_______________________________________
Jean-Guy Marcil
(e-mail address removed)

Feng said:
Hi,

I'm trying to put a VB word macro into VB. It involves word specific
variables and properties like Word.Range, wdFieldSet,
Application.ScreenUpdating and ActiveDocument.PrintOut. I'm using VB .net,
but it does not recognize these variables and properties. Does anyone know
what libraries I need to add so that it does?
 
F

Feng

Thanks a lot
----- Feng wrote: -----

Hi,

I'm trying to put a VB word macro into VB. It involves word specific variables and properties like Word.Range, wdFieldSet, Application.ScreenUpdating and ActiveDocument.PrintOut. I'm using VB .net, but it does not recognize these variables and properties. Does anyone know what libraries I need to add so that it does?
 

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