Sub PrintPreview()
Dim LC As Long
With Sheets("TMHP-PL")
LC = .Cells(1, Columns.Count).End(xlToLeft).Column
PageSetup.PrintArea = .Range(.Cells(1, 1), .Cells(59, LC)).SpecialCells(xlCellTypeVisible).Address
End With
End Sub
Sub PrintPreview()
Dim LC As Long
With Sheets("TMHP-PL")
LC = .Cells(1, Columns.Count).End(xlToLeft).Column
.PageSetup.PrintArea = .Range(.Cells(1, 1), .Cells(59, LC)).SpecialCells(xlCellTypeVisible).Address
End With
End Sub
Sub PPV()
Dim LC As String
With Sheets("TMHP-PL")
LC = Left(.Cells(1, .Cells(1, .Columns.Count).End(xlToLeft).Column).Address(1, 0), _
InStr(1, .Cells(1, Cells(1, .Columns.Count).End(xlToLeft).Column).Address(1, 0), "$") - 1)
.PrintArea = .Range("A:" & LC).SpecialCells(xlCellTypeVisible).Address
End With
End Sub
With Sheets("TMHP-PL")
.PageSetup.PrintTitleColumns = "$A:$A"
End With