Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula errors solution
Dim CurrentCell As Object, NextCell As Object ActiveWorkbook.Sheets("Sheet1").Select Set CurrentCell = Range("A7") Do Until IsEmpty(CurrentCell) Set NextCell = CurrentCell.Offset(1, 0) CurrentCell.EntireRow.Select For Each CELL In Selection If IsError(CELL) Then CELL.ClearContents Else End If Next Set CurrentCell = NextCell Loo -- Ashley Fran ----------------------------------------------------------------------- Ashley Frank's Profile: http://www.excelforum.com/member.php...fo&userid=2648 View this thread: http://www.excelforum.com/showthread.php?threadid=39755 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula errors solution
Ashley,
No need to loop: Sub Macro1() On Error Resume Next Range("A7:IV65536").SpecialCells(xlCellTypeFormula s, 16).ClearContents Range("A7:IV65536").SpecialCells(xlCellTypeConstan ts, 16).ClearContents End Sub HTH, Bernie MS Excel MVP "Ashley Frank" wrote in message news:Ashley.Frank.1u3zqd_1124618721.0532@excelforu m-nospam.com... Dim CurrentCell As Object, NextCell As Object ActiveWorkbook.Sheets("Sheet1").Select Set CurrentCell = Range("A7") Do Until IsEmpty(CurrentCell) Set NextCell = CurrentCell.Offset(1, 0) CurrentCell.EntireRow.Select For Each CELL In Selection If IsError(CELL) Then CELL.ClearContents Else End If Next Set CurrentCell = NextCell Loop -- Ashley Frank ------------------------------------------------------------------------ Ashley Frank's Profile: http://www.excelforum.com/member.php...o&userid=26488 View this thread: http://www.excelforum.com/showthread...hreadid=397552 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula errors solution
Bernie, A neat solution - far better. I only posted this I had this problem last year and thought that it may be useful Thanks ashley -- Ashley Frank ------------------------------------------------------------------------ Ashley Frank's Profile: http://www.excelforum.com/member.php...o&userid=26488 View this thread: http://www.excelforum.com/showthread...hreadid=397552 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
formula looking for an either/or solution in same column | Excel Worksheet Functions | |||
formula or vba solution | Excel Worksheet Functions | |||
Formula Solution | Excel Worksheet Functions | |||
Convert VBA solution to a formula | Excel Discussion (Misc queries) | |||
Need solution to formula problem | Excel Discussion (Misc queries) |