Hi Cetin,
and thanks! I am getting closer, but still are a little confused when trying to translate Word/vba code into VFP equivalents. Here is what I am trying to do now, this works in a VBA macro, but how can I create corresponding code in VFP:
.Application.Browser.Target = wdBrowseSection
.Application.Browser.Next
.Selection.MoveUp Unit:=wdLine, Count:= 1
.Selection.Movedown Unit:=wdLine, Count:= 2, Extend:=wdExtend
.Selection.Delete Unit:=wdCharacter, Count:=1
By the way, this code is used to remove the dividing line that Word inserts
at the end of a document created by mailmerge from a vfp data record, and i wonder if it is possible to tell Word not to insert this divider at all?
With regard to (wdPromptToSaveChanges = false), that is on fact what I find
in my VBA macros, so I assume somehow the syntax is correct. I have tried
the variations you suggest, but did not have much success. But that seems no longer to be any problem anyway.
Regards, Rolf
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