Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default CLEAN Formula in Excel

Kristen

Sub Clean_Stuff()
Dim Cell As Range
For Each Cell In Selection
If (Not IsEmpty(Cell)) And _
Not IsNumeric(Cell.Value) And _
InStr(Cell.Formula, "=") = 0 _
Then Cell.Value = Application.Clean(Cell.Value)
Next
End Sub


Gord Dibben Excel MVP

On Tue, 12 Apr 2005 15:30:05 -0700, "Kristen"
wrote:

I am trying to use the CLEAN formula in Excel which removes unprintable
characters. I can do it for one cell at a time by using the formula
=Clean(cell reference) but I need to do it for a range of cells as I have
unprintable characters throughout my entire worksheet. I've tried the
following formula =Clean(1st cell reference:last cellreference) but I get a
#Value error. Any ideas or suggestions would be GREATLY appreciated!

Kristen


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
Messy Formula needs clean up help! Danny Boy Excel Worksheet Functions 7 March 19th 10 03:24 PM
Clean Frame Around Excel joesf16 Excel Discussion (Misc queries) 1 September 5th 07 08:44 PM
CLEAN Formula Kristen Excel Worksheet Functions 1 April 12th 05 11:48 PM
CLEAN Formula in Excel Nick Hodge Excel Programming 0 April 12th 05 11:36 PM
How do I Clean up this formula? Billy Two Hats Excel Programming 1 July 14th 03 07:07 AM


All times are GMT +1. The time now is 11:42 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"