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
[email protected]

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?
 
Top