vba - Excel date format issue (00/01/1990) -


i trying replace 0's(actually in date format =00/01/1990) n.a

so have recorded macro. checked macro in different file, not working correctly. if click f2 each cell try re run macro working fine. other ways skip keep pressing f2 each range (thousand of ranges there) .. ex if a1,b1,a2 , b2 have 00/01/1900 when run below macro not working .. tried press f2 each cell again re run macro ..then working

code :

range("a1").select  range(selection, selection.end(xldown)).select  range(selection, selection.end(xltoright)).select selection.replace what:="00/01/1900", replacement:="n/a", lookat:=xlpart _     , searchorder:=xlbyrows, matchcase:=false, searchformat:=false, _     replaceformat:=false range("aw1").select 

if trying replace in entire worksheet can use instead of defining range everytime

sub sample()     sheets("sheet1")         .cells.replace what:="00/01/1900", replacement:="n/a", lookat:=xlpart, _         searchorder:=xlbyrows, matchcase:=false, searchformat:=false, _         replaceformat:=false     end end sub 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -