View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_5_] Bob Phillips[_5_] is offline
external usenet poster
 
Posts: 620
Default selecting range

David,

In VBA?

If so,

Dim cCols As Long

cCols = Cells(1, Columns.Count).End(xlToLeft).Column
Columns(3).Resize(1, cCols - 2).EntireColumn.Select

--

HTH

Bob Phillips

"david" wrote in message
...
I am trying to select some columns. The problem is that
the number of columns will change. I want to know how I
can select from column C until the last column with data.
I do not want to select column A or B.

Thanks,
David