Access Mail Merged fields ( Values) in side the Macro as a variable.

Hi,

I want to utilize the partial printing functionality of the word document.

e.g. There is 40 page document out of these user may want to print only 10-20 pages.

This page range info will be passed to document through mail merge data.

( Data Source is from SAP-ABAP).

Depending upon values in this data I want to execute a 'Print1' macro with the variables.

Sub Print1()

ActiveDocument.ActiveWindow.PrintOut _
Range:=wdPrintFromTo, From:="1", To:="3"

End Sub

In above code I want thevalues for "From" and "To" to be from the mail merged data.

Please help me on this as i am very new to all this stuff!!!

Thank you,

Vinod Doshi.

[1435 byte] By [doshivinod] at [2008-1-9]