Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the selection command and I'm havinig trouble with the columnindex.
With Selection Range(.Cells, Cells(.Row, "iv")).Select End With The above works fine but when I use column instead if row as below: With Selection Range(.Cells, Cells(.Column, "6000")).Select End With I get an Run-time error 1004 application-defined or object-definde error I believe it's because i'm not using the correct column indexing. thanks for any help darron |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Darron
It is Cells(row,column) Not column,row -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Darron Ross" wrote in message ... I'm using the selection command and I'm havinig trouble with the columnindex. With Selection Range(.Cells, Cells(.Row, "iv")).Select End With The above works fine but when I use column instead if row as below: With Selection Range(.Cells, Cells(.Column, "6000")).Select End With I get an Run-time error 1004 application-defined or object-definde error I believe it's because i'm not using the correct column indexing. thanks for any help darron |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Darron,
Try it this way: With Selection Range(.Cells, Cells(6000, .Column)).Select End With "Darron Ross" wrote: I'm using the selection command and I'm havinig trouble with the columnindex. With Selection Range(.Cells, Cells(.Row, "iv")).Select End With The above works fine but when I use column instead if row as below: With Selection Range(.Cells, Cells(.Column, "6000")).Select End With I get an Run-time error 1004 application-defined or object-definde error I believe it's because i'm not using the correct column indexing. thanks for any help darron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting results from the Index command | Excel Worksheet Functions | |||
Sheet Selection using a Ranged index | Excel Programming | |||
Index on a selection | Excel Programming | |||
Index of Cells in a selection | Excel Programming | |||
Index of cells in a selection | Excel Programming |