ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to replace error values (https://www.excelbanter.com/excel-programming/364047-macro-replace-error-values.html)

Shamik

Macro to replace error values
 
I am working on huge spreadsheets in excel. Many cells have error
values. Can anyone suggest a macro that will find all these error
values and replace them with a "." (period)?

Thanks


Tom Ogilvy

Macro to replace error values
 
Sub ReplacewithPeriod()
On Error Resume Next
Cells.specialcells(xlFormulas,xlErrors).Value = "."
On Error goto 0
End sub

--
Regards,
Tom Ogilvy


"Shamik" wrote:

I am working on huge spreadsheets in excel. Many cells have error
values. Can anyone suggest a macro that will find all these error
values and replace them with a "." (period)?

Thanks



Shamik

Macro to replace error values
 
Hi Tom,

Thanks a lot!! This was the very thing I needed.

Shamik Shah

Tom Ogilvy wrote:
Sub ReplacewithPeriod()
On Error Resume Next
Cells.specialcells(xlFormulas,xlErrors).Value = "."
On Error goto 0
End sub

--
Regards,
Tom Ogilvy




All times are GMT +1. The time now is 04:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com