Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Selecting different multiple columns | Excel Worksheet Functions | |||
selecting columns in a worksheet | Excel Worksheet Functions | |||
Selecting columns | Excel Programming | |||
Selecting Columns | Excel Programming | |||
Selecting Multiple Columns | Excel Programming |