I’m not sure this is possible but what I would like to do is have a VBA routine that prints two separate ranges from two different sheets in my workbook on one sheet of paper. The sheet names are Amortize and Property.
I have the two portions printing separately (Loan & Property). However, I would like the output to be limited to one page. Currently my routines print on separate sheets of paper. Here is a snipit of the code that prints the portions independently.
Loan –
Property –
Here are results of the two routines:
Loan –
Property –
Here is an example of something I would like:
Thank you for viewing,
Steve K.
I have the two portions printing separately (Loan & Property). However, I would like the output to be limited to one page. Currently my routines print on separate sheets of paper. Here is a snipit of the code that prints the portions independently.
Loan –
Rich (BB code):
Sub PrintLoanInfo()
Application.ScreenUpdating = False
ActiveSheet.Shapes("Straight Connector 9").Visible = True
ActiveSheet.PageSetup.Orientation = xlPortrait
ActiveSheet.PageSetup.LeftMargin = Application.InchesToPoints(0)
ActiveSheet.PageSetup.RightMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.PrintArea = "$A$1:$L$27"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
ActiveSheet.PageSetup.PrintArea = ""
Range("C2").Select
ActiveSheet.Shapes("Straight Connector 9").Visible = False
ActiveSheet.PageSetup.LeftMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.RightMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.PrintArea = ""
Application.ScreenUpdating = True
End Sub
Property –
Rich (BB code):
Sub PrintPropertyInfo()
Sheets("Property").Visible = True
Sheets("Property").Select
ActiveSheet.PageSetup.PrintArea = "$A$2:$B$17"
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("Property").Select
ActiveWindow.SelectedSheets.Visible = False
End Sub
Here are results of the two routines:
Loan –
Property –
Here is an example of something I would like:
Thank you for viewing,
Steve K.