I didn't see any ranges in the attachment that were selected
Did you really want all those blank pages printed?
This macro will find the useful data on the two sheets using what I understood to be the rules
If you want something else, give the specific addresses of the ranges you want
Option Explicit
Sub FindRows()
Dim rUsed As Range, rWanted As Range
Dim r As Long, c As Long
With Worksheets("RD")
Set rUsed = .UsedRange
r = rUsed.Rows.Count
Do While Application.WorksheetFunction.Count(rUsed.Rows(r)) = 0
r = r - 1
Loop
c = rUsed.Columns.Count
Do While Application.WorksheetFunction.Count(rUsed.Columns(c)) = 0
c = c - 1
Loop
Set rWanted = Range(.Cells(1, 1), .Cells(r, c))
MsgBox "RD range = " & rWanted.Address
End With
With Worksheets("IB")
Set rUsed = .UsedRange
c = rUsed.Columns.Count
Do While Application.WorksheetFunction.Count(rUsed.Columns(c)) = 0
c = c - 1
Loop
Set rWanted = Range(.Cells(1, 3), .Cells(r - 4, c))
MsgBox "IB range = " & rWanted.Address
End With
End Sub