Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I know this has to be fairly simple, but I've searched all the topics
and can't determine how to do the following. I am trying to select a range based on certain criteria. I am looping through the range using a counter. For Counter = 9 To LoopValue Set curcell = Worksheets("Compiled Totals").Cells(Counter, 4) If curcell.Value = 0 Then Sheets("Compiled Totals").Range(Cells(Counter, 1), Cells(Counter, 15)).Select Selection.Copy 'Other code to paste the range on another spreadsheet End If Next Counter I keep getting the 1004 error for the following line: Sheets("Compiled Totals").Range(Cells(Counter, 1), Cells(Counter, 15)).Select What am I missing? Thanks. Connie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable Range | Excel Worksheet Functions | |||
Set a range from a variable location | Excel Discussion (Misc queries) | |||
Using a range variable inside a excel function | Excel Discussion (Misc queries) | |||
Select Using Range | Excel Discussion (Misc queries) | |||
Select a range | Excel Discussion (Misc queries) |