B
Brian
I am trying to get a WorkBook to print from a user Form Control Button. I am
not exactly sure how to get the Print Dialog Box to come up, so I can choose
the printer, Print Rage, Print What, Number of Copies & Print Preview.
The Name of the WorkBook will Change each time, I am not sure how to
acomplish this task.
Control Button = Print_Eng_Spec_12_Click()
This is the save method I am using, So you can see what information is being
saved as the Workbook Name.
' Save Eng Spec 11 Control Button
Private Sub Save_Eng_Spec_11_Click()
Dim strFile As String
Dim bk As Workbook
Set bk = ActiveWorkbook
strFile = "SPEC " & TEO_No_1.Value _
& Space(1) & CLLI_Code_1.Value _
& Space(1) & CES_No_1.Value _
& Space(1) & TEO_Appx_No_2.Value
bk.SaveAs Filename:=Application.GetSaveAsFilename(strFile)
If FileToSave = False Then
MsgBox "The Save Method Failed, Eng Spec was not Saved", , "C.E.S."
Exit Sub
End If
End Sub
not exactly sure how to get the Print Dialog Box to come up, so I can choose
the printer, Print Rage, Print What, Number of Copies & Print Preview.
The Name of the WorkBook will Change each time, I am not sure how to
acomplish this task.
Control Button = Print_Eng_Spec_12_Click()
This is the save method I am using, So you can see what information is being
saved as the Workbook Name.
' Save Eng Spec 11 Control Button
Private Sub Save_Eng_Spec_11_Click()
Dim strFile As String
Dim bk As Workbook
Set bk = ActiveWorkbook
strFile = "SPEC " & TEO_No_1.Value _
& Space(1) & CLLI_Code_1.Value _
& Space(1) & CES_No_1.Value _
& Space(1) & TEO_Appx_No_2.Value
bk.SaveAs Filename:=Application.GetSaveAsFilename(strFile)
If FileToSave = False Then
MsgBox "The Save Method Failed, Eng Spec was not Saved", , "C.E.S."
Exit Sub
End If
End Sub