View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Compton Dave Compton is offline
external usenet poster
 
Posts: 2
Default Using names ranges to set print area in a macro

Hi all,

Hope somebody can help me out!

I would like to run a macro to set a print area.

I need to print columns A thru S only.
I need to define the bottom row of the print area to be the last row
before column A becomes blank.

(The length of the list of data is dynamic, therefore I cannot use a
static range. I wish to omit any row below the point when column A
becomes blank, and I am unable to sort the data in anyway.)

I was thinking of using an IF statement inside a named range.

Any ideas?

Thanks in advance.