Thread: dyanmic range
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Steve[_42_] Steve[_42_] is offline
external usenet poster
 
Posts: 9
Default dyanmic range

I am trying to plot a graph in VBA using a selected range.
However I only want the range to incorporate column A and D, which will
expand over time.

How Can I express the following so that the range updates dynamically when
new rows are entered?
Range("A1:A23,D1:D23").Select

Tried this, but does not work at all:
Range(Range("A1").End(xlDown), Range("D1").End(xlDown)).Select

Thank you.