search and replace


Posted by Erik Bergsma on January 08, 2002 4:03 AM

How can search in a worksheet for number.format and replace it for an other number.format???



Posted by Jacob on January 08, 2002 4:54 AM

Hi
This should work

Select the cells manually or with VB

for each cell in selection
if cell.NumberFormat = "#,##0.00_);(#,##0.00)"
then cell.numberformat = Newformat
else
end if
next

HTH
Jacob