Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Fri, 1 Aug 2008 16:09:01 -0700, ManhattanRebel
wrote: I am getting a "Range of Object'_Global' error 1004 when I use this formula: Range(Cells(i, "CC")).Resize(, 2).Cut Destination:=Intersect(Rows(i), Range("Red One").EntireColumn) Do I have to specify which worksheet I'm using for the destination? The sheet is "Color". Where and how should I specify that, if necessary? Thx. You don't *have* to, but you should. If you don't, it assumes the active sheet. I assumed both the copied cells and the destination are on the same sheet. Dim sh As Worksheet Set sh = ThisWorkbook.Sheets("Color") sh.Cells(i,"CC").Resize(,2).Cut Intersect(sh.Rows(i), sh.Range("Red One").EntireColumn) Make sure that last bit is all on one line. -- Dick Kusleika Microsoft MVP-Excel http://www.dailydoseofexcel.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Headers/Footers from a named range of cells in a worksheet | Excel Discussion (Misc queries) | |||
Create list of Named Ranges | Excel Worksheet Functions | |||
Create named ranges | Excel Programming | |||
Using a formula to create named range reference | Excel Worksheet Functions | |||
Using VB to to create named ranges | Excel Programming |