Print a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How can I print a form with flexible data on a printer selected by the user?

Thens
 
What does flexible data mean?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob,

The form will be filled automatically with dropdownboxes en labels heving a
different value.
By changing a dropdownbox, the value of different labels will change.
I want a print out of one such version.
 
--

HTH

RP
(remove nothere from the email address if mailing direct)
 
You could add a Print button, and add this code

Private Sub cmdPrint_Click()
Dim fOK As Boolean
Dim sPrinter As String


With Application
sPrinter = .ActivePrinter
fOK = .Dialogs(xlDialogPrint).Show
End With

If fOK Then
Me.PrintForm
Application.ActivePrinter = sPrinter
End If
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top