Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey,
I know that what I,ve given below is wrong and that exactly is the reason why I'm asking your help. So, how do I correct this statement below? Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy I need to select a range of cells, But with reference anyone out there??? -- Baapi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need a good book try http://j_walk.com
Quote marks convert your address to a string Range("A4")is ok but Range(Cells(1,4)) can not have quotes in it Range(Cells(R1, C1 + 2),Cells(R1, C1 + 16)).Copy also not a colin but a comma between top left and bottom right cells of the range What are R1 and C1?? Really bad names for variables in Cells( x,y) x is the number of the row y is the number of the column looks like you may mean to use offset - loook it up in help "Baapi" wrote: Hey, I know that what I,ve given below is wrong and that exactly is the reason why I'm asking your help. So, how do I correct this statement below? Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy I need to select a range of cells, But with reference anyone out there??? -- Baapi |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As a guess you are using the active cell? If that is the case the try
range(activecell.offset(0, -1), activecell.offset(0, 16)).copy -- HTH... Jim Thomlinson "Baapi" wrote: Hey, I know that what I,ve given below is wrong and that exactly is the reason why I'm asking your help. So, how do I correct this statement below? Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy I need to select a range of cells, But with reference anyone out there??? -- Baapi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
Creating range name for a range selection | Excel Programming | |||
Selection of range | Excel Programming |