Author | Topic: Office 11 | |
---|---|---|
Kiron Joseph | Office 11 on Tue, 08 Jul 2008 14:41:20 +0530 Hi All, I was trying to integrate MS Word with the xBase Application. When I recorded the macro , got the following code Sub Macro4() ' ' Macro4 Macro ' ' Selection.MoveLeft Unit:=wdCharacter, Count:=8 Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter Selection.MoveLeft Unit:=wdCharacter, Count:=4 Selection.MoveRight Unit:=wdCharacter, Count:=13, Extend:=wdExtend Selection.Font.Bold = wdToggle Selection.Font.Size = 14 End Sub Where will we get the value of the constants like wdCharacter, wdAlignParagraphCenter, wdToggle etc. ? Anybody has a sample ? Regards Kiron | |
Hannes Ziegler | Re: Office 11 on Wed, 09 Jul 2008 03:21:21 +0200 Kiron, > I was trying to integrate MS Word with the xBase Application. You have two choices for integrating MS Word into your Xbase++ applications: _________________ 1) Alaska Xbase++ This choice is good for a first learning experience. I attach a ZIPed WordApp.ch containing the wd* values of MS Word as #define constants. They are listed by Alaska's Tlb2Ch.exe utility (you find Tlb2CH.exe in the \alaska\xppw32\bin directory) ____________________ 2) The YUKON Project This choice is appropriate for the experienced programmer. An experienced COM programmer loads the value of a wd* symbol (an enumerated value) at runtime from the type library of Word. HTH, -- Hannes http://www.knowleXbase.com "Kiron Joseph" <kiron@datadevices.com> schrieb im Newsbeitrag news:rjb674tbr429pccos0rdcol1fm3b3qcf64@4ax.com... > Hi All, > > I was trying to integrate MS Word with the xBase Application. > When I recorded the macro , got the following code > > Sub Macro4() > ' > ' Macro4 Macro > ' > ' > Selection.MoveLeft Unit:=wdCharacter, Count:=8 > Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter > Selection.MoveLeft Unit:=wdCharacter, Count:=4 > Selection.MoveRight Unit:=wdCharacter, Count:=13, Extend:=wdExtend > Selection.Font.Bold = wdToggle > Selection.Font.Size = 14 > End Sub > > > Where will we get the value of the constants like wdCharacter, > wdAlignParagraphCenter, wdToggle etc. ? > > Anybody has a sample ? > > > Regards > > Kiron WordApp.ch.zip | |
Thomas Braun | Re: Office 11 on Wed, 09 Jul 2008 11:24:04 +0200 Kiron Joseph wrote: > Where will we get the value of the constants like wdCharacter, > wdAlignParagraphCenter, wdToggle etc. ? > > Anybody has a sample ? The word visual basic reference help has a chapter with all the constants (Enumerations) Do a search for VBAWD*.CHM in the windows program directory. Here on my machine it is c:\programme\Microsoft Office\OFFICE11\1031\VBAWD10.CHM (1031 is the locale ID for german) regards Thomas |