Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have been trying to set a range using the following code: Dim RNG as Range Set RNG = worksheets("test").Range(cells(1,1),cells(10,10)) This fails with an error 1004 but if I use this code Dim RNG as Range Set RNG = worksheets("test").Range("A1:J10) The code works. This is the same range, why won't the compiler accept the first code? thanks, andy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting Curline to 0 on a text box fails (Excel 2007) | Excel Programming | |||
Setting up formatting for a range of cells | Excel Discussion (Misc queries) | |||
Setting an array range of cells??? | Excel Programming | |||
Setting OnAction Property Fails | Excel Programming | |||
Setting CommandText property of PivotCache fails if cache has 1 PivotTable | Excel Programming |