Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have code that performs a replace on any cell that contains a value
#Missing and replaces it with a 0 (zero). This code works great in Office 2000. We are upgrading to 2003 and this same code now returns an "information window" that "Microsoft Office Excel cannot find any data to replace...etc." It then very nicely offers some suggestions as to why this might occur. In Office 2000, the code would simply find nothing and continue on its merry way. Now, it stops, which is creating a problem with the rest of the code continuing. Is there a way around this message window -- can it be turned off or error trapped? The code is: Range("A1").Select Cells.Replace What:="#Missing", Replacement:="0", LookAt:=xlPart, _ SearchOrder:=xlByColumns, MatchCase:=False Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace - Replace with Blank Space | Excel Discussion (Misc queries) | |||
find and replace data | Excel Worksheet Functions | |||
find and replace - replace data in rows to separated by commas | Excel Worksheet Functions | |||
VBA in Microsoft Excel: Find & Replace method macro across multiple files | Excel Programming | |||
Find and Replace Data from one into another | Excel Programming |