D
dvdastor
Currently using MS Word 2007.... Does anyone know how to control the
"Print to File" dialog box that comes up after a user chooses that
option on the File Print dialog?
here is my current code:
Sub CapturePrintFileName()
Dim dlg As Dialog
Set dlg = Dialogs(wdDialogFilePrint)
With dlg
..PrintToFile = 0
If .Display = -1 And .PrintToFile = 1 Then
.Execute
End If
End With
End Sub
This brings up the dialogs as it should, but when the "Print to File"
dialog box comes up, I cannot seem to interact with it. On the "OK"
click of that form, i need to capture the Filename that the user types
in. Can anyone help with this?
Thanks!
"Print to File" dialog box that comes up after a user chooses that
option on the File Print dialog?
here is my current code:
Sub CapturePrintFileName()
Dim dlg As Dialog
Set dlg = Dialogs(wdDialogFilePrint)
With dlg
..PrintToFile = 0
If .Display = -1 And .PrintToFile = 1 Then
.Execute
End If
End With
End Sub
This brings up the dialogs as it should, but when the "Print to File"
dialog box comes up, I cannot seem to interact with it. On the "OK"
click of that form, i need to capture the Filename that the user types
in. Can anyone help with this?
Thanks!