Hello,
I have an excel document with a sheet for each month, I want to put a print macro button on each sheet which when pressed prints a certain range of the sheet, the range I want to print starts at A1 and finishes in column I, the row is based on how many entries there have been that month (and varies every month) and the last row of the range always has the word Total in column H.
I have tried this code but obviously the range changes and would be good to have it automatically update.
What would the best way to approach this be.
TIA
I have an excel document with a sheet for each month, I want to put a print macro button on each sheet which when pressed prints a certain range of the sheet, the range I want to print starts at A1 and finishes in column I, the row is based on how many entries there have been that month (and varies every month) and the last row of the range always has the word Total in column H.
I have tried this code but obviously the range changes and would be good to have it automatically update.
Code:
Sub PrintRange()
Range("A1:I50").PrintOut
End Sub
TIA