How to use ole2 to tab in MS Word?
I am new to the user of ole2. I am using ole2 to output the contents of a block in my Forms 6i application to a MS Word document. I need to format the output so that after writng a text the cursor should move 'n' tabstops before writing the value of the block's field.
I ran the macro recorder in Word to see the VB commands that are executed when tabbing and I got the following 2 macros:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 3/20/2010 by ssharma
'
Selection.ParagraphFormat.TabStops.ClearAll
ActiveDocument.DefaultTabStop = InchesToPoints(3)