I have a sheet that varies in number of lines I want to print. Number of columns is constant.
The number of lines is found by adding 20 to the highest number in column A, where a list of items from 1 to x starts in A6. Eg. if x = 17 the area to print is from A1 to N37.
I will need VBA to find out what the value of MAX(A:A) is. How is this done?
The meaning is perhaps easiest understood by following sentence, which unfortunately does not make sense to VBA:
ActiveSheet.PageSetup.PrintArea = "A1:N(MAX(A:A)+20)"
NSV
Bookmarks