• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Command button to replace empty cell with text

Choong

New Member
Range B6:J36 having some result
but some cell column will not have value / blank or #div/0
want to replace those cell with no value/blank or #div/0 with text "NIL"
 
Hi Choong

Give the following a crack. If it does not work then please post a file.

Code:
Sub RemDta()
  [b6:j36].SpecialCells(4) = "Nil" '4 = Blanks in the Specialcells world
  [b6:j36].Replace "#div/0", "Nil" 'Find your text and replace
End Sub

Take care

Smallman
 
Back
Top