General information
Category:
COM/DCOM and OLE Automation
Paul,
Have you used the Macro recorder to find out what code applies to your manual commands. Once you know the VB Script code,
turning it into VFP is usually pretty easy.
A tip is when the Macro recorder option is running, use menu command to adjust column widths, etc. Resizer bars don't work when
Macro recorder is on. And once you go into VB Script editor, is has the commands needed to emulate what you did programmatically.
HTH,
Ed
>Hello everyone,
> I posted a message a few days ago about an aspect of automating Word. I don't know if the message wasn't read, or if the answer just wasn't known, but I didn't get any responses, so here's the basic question again.
>
>I use this code to create a new column in Word because I need some text left justified, and on the same line I need other text right justified:
>
>WITH WORDFILE.ACTIVEDOCUMENT.PAGESETUP.TEXTCOLUMNS
> .Add(wordfile.application.inchestopoints(2.5), wordfile.application.inchestopoints(.25), .f.)
> .LINEBETWEEN = .F.
>ENDWITH
>
>On the same page, though, I then need to reduce the column count back to one column from that point on in the document. By hand, this is no problem, but programatically, all of my efforts have resulted in setting the entire document back to a column count of 1 instead of just from that point on. Can anyone help me out with this one?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only