I recently posted a macro that I received help from excel ninja member HUI, which works great.
my only problem, now is that the print area preview does not expand when the populated cells are created thus rendering the back button to be disabled until I manual adjust the print area preview.
here is a macro I found to expand the print area preview just not sure how to combine the two macros into one or if this new macro should be placed in a module.
here is the link for my other macro to reference what I am trying to do.
http://chandoo.org/forum/threads/delete-add-rows-from-referenced-worksheet.15192/
my only problem, now is that the print area preview does not expand when the populated cells are created thus rendering the back button to be disabled until I manual adjust the print area preview.
here is a macro I found to expand the print area preview just not sure how to combine the two macros into one or if this new macro should be placed in a module.
Code:
Sub Set_Print_Area()
Dim x As Long, lastCell As Range
x = ActiveSheet.UsedRange.Columns.Count
Set lastCell = Cells.SpecialCells(xlCellTypeLastCell)
ActiveSheet.PageSetup.PrintArea = Range(Cells(1, 1), lastCell).Address
End Sub
here is the link for my other macro to reference what I am trying to do.
http://chandoo.org/forum/threads/delete-add-rows-from-referenced-worksheet.15192/