Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Selecting Columns

I am scratching my head over this: I can select rows 1 to 20 by
rows("1:20").select. How come I can't select columns 1 to 20 by
columns("1:20").select?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Selecting Columns

Because the address of row 1 is 1 while the address of column 1 is "A" so:
Columns("A:T").Select
or
Range(Cells(1, 1), Cells(1, 20)).EntireColumn.Select

Hope this helps
Rowan

Shatin wrote:
I am scratching my head over this: I can select rows 1 to 20 by
rows("1:20").select. How come I can't select columns 1 to 20 by
columns("1:20").select?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Selecting Columns

columns use alphabets please

"Shatin" wrote:

I am scratching my head over this: I can select rows 1 to 20 by
rows("1:20").select. How come I can't select columns 1 to 20 by
columns("1:20").select?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Selecting Columns

Shatin,
Because Columns are "lettered" not numbered.
Try Columns("A:E")

NickHK

"Shatin" wrote in message
...
I am scratching my head over this: I can select rows 1 to 20 by
rows("1:20").select. How come I can't select columns 1 to 20 by
columns("1:20").select?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selecting Columns

Probably for consistency.

Range("1:20") refers to rows
Range("A:T") refers to columns.

While Columns("1:20") would not be ambiguous, for consistency I assume they
chose to require letters.

--
Regards,
Tom Ogilvy



"Shatin" wrote in message
...
I am scratching my head over this: I can select rows 1 to 20 by
rows("1:20").select. How come I can't select columns 1 to 20 by
columns("1:20").select?




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 different multiple columns rcg Excel Worksheet Functions 1 September 26th 06 05:58 PM
selecting columns in a worksheet nuti Excel Worksheet Functions 1 January 12th 06 01:06 PM
Selecting columns aspadda Excel Programming 1 December 9th 03 03:56 AM
Selecting Columns xnman Excel Programming 2 November 18th 03 01:52 PM
Selecting Multiple Columns Jay[_12_] Excel Programming 1 October 13th 03 05:35 PM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"