Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try out the following code. If sheet2 is active, all 3 procedures work fine, but if sheet2 is not
active, TestRangeCells will not work but the other 2 procedures work fine. Anyone know why there is a difference? Sub TestRangeA1() Sheets(2).Range("a1:a2") = 99 End Sub Sub TestRangeCells() Sheets(2).Range(Cells(1, 1), Cells(2, 1)) = 99 End Sub Sub TestCells() Sheets(2).Cells(1, 1) = 99 Sheets(2).Cells(2, 1) = 99 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Very Peculiar DV error Q | Excel Worksheet Functions | |||
error 1004 Range object | Excel Programming | |||
Error inserting formulas into a range object | Excel Programming | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Peculiar Runtime Error 1004 | Excel Programming |