Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Luc Luc is offline
external usenet poster
 
Posts: 23
Default Resetting cells with 0 to empty cells

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 324
Default Resetting cells with 0 to empty cells

ActiveSheet.Range("I2:I25").Select
Selection.Replace What:="0", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
--
Best wishes,

Jim


"Luc" wrote:

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Resetting cells with 0 to empty cells

Select the cells (column or just a set of them) and run:

Sub clearum()
For Each r In Selection
If r.Value = 0 Then
r.Clear
End If
Next
End Sub
--
Gary''s Student
gsnu200709


"Luc" wrote:

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Resetting cells with 0 to empty cells

To replace 0 with "" in Column B:

Range("B:B").Replace What:="0", Replacement:="", lookat:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

To do the same thing for I2 to I25, replace "B:B" with "I2:I25".


"Luc" wrote:

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Resetting cells with 0 to empty cells

Range("B:B") = empty

"Luc" wrote:

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Resetting cells with 0 to empty cells

Range("B:B") = empty

"Luc" wrote:

How do i reset cells wich contain 0 (zero) to an empty cell.:

1.For an entire column
2. For a certain range, example I2 to I25

Thanxxx,

Luc



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
Resetting cells to zero value. Ron New Users to Excel 5 April 26th 23 11:48 AM
Resetting cells Chuck Excel Worksheet Functions 1 December 17th 07 06:45 PM
macro to colour empty cells (cells not recognized as empty) Gerben Excel Programming 5 June 30th 05 03:29 PM
resetting controlsource cells Sherry Marshall Excel Programming 0 April 2nd 04 06:54 PM
Resetting cells Sony[_3_] Excel Programming 5 February 4th 04 03:31 PM


All times are GMT +1. The time now is 02:35 PM.

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

About Us

"It's about Microsoft Excel"