Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
XL2002: Selection.SpecialCells(xlCellTypeBlanks).Select
Hi All
I'm using a bit of code to copy formulae into blank cells using 'Selection.SpecialCells(xlCellTypeBlanks).Select'. I'm getting an error on the occassions when there are no blank cells. I've tried using an On Error statement but doesn't seem to work. Any ideas how I get around the error msg? Code below Regards Trevor Williams Range("A1").CurrentRegion.Select On Error GoTo CleanUp Selection.SpecialCells(xlCellTypeBlanks).Select Selection.FormulaR1C1 = "=R[-1]C" also tried: If Range("A1").CurrentRegion.SpecialCells(xlCellTypeB lanks).Select = True Then Selection.FormulaR1C1 = "=R[-1]C" End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Work around to SpecialCells(xlCellTypeBlanks)... | Excel Discussion (Misc queries) | |||
.SpecialCells(xlCellTypeBlanks).EntireRow.Delete | Excel Programming | |||
Check SpecialCells(xlCellTypeBlanks) for 0 blanks | Excel Programming | |||
Help to hide rows, SpecialCells(xlCellTypeBlanks) doesn't work... | Excel Programming | |||
specialcells(xlcelltypeblanks) | Excel Programming |