Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace error with blank chegel Excel Worksheet Functions 7 November 24th 07 06:20 AM
Replace Chart Values with Second Set of Values Brian Erhard Charts and Charting in Excel 1 November 29th 06 08:47 PM
Using Find and Replace to replace " in a macro snail30152 Excel Programming 1 April 13th 06 11:58 PM
Given a range of cells, some of which contain errors (e.g. #DIV/0), replace each cell having an error with the value of a non-error precedent cell Barclay0x00 Excel Programming 3 October 24th 05 05:12 PM
replace error by value Fabbe Excel Discussion (Misc queries) 4 December 7th 04 02:33 PM


All times are GMT +1. The time now is 09:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"