Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
Help with selecting a range... Tom Ogilvy Excel Programming 0 July 22nd 03 03:36 PM
Help with selecting a range... Don Guillett[_4_] Excel Programming 0 July 22nd 03 03:18 PM
selecting a range David Excel Programming 2 July 21st 03 11:14 PM


All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"