Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to do a find and replace

Status
Not open for further replies.

splendidmonkey

Technical User
Nov 21, 2001
17
0
0
GB
Basically I have an excel sheet with 10 columns one column is called Closure Status with the Values 0 and 1. 1 needs to be changed to Closed and 0 to Open I also have two other columns that are called Closure Date and Verify Date these columns contain dates however on open rows they contain “NULL” this needs to be blank could anyone help me with a Macro
 
Unless I'm missing something, these are basically find and replace activities (highlight the relevant column and find "1", replace with "Closed" etc). If you need to do this repeatedly, then record your actions as a macro.

Ben
 
It would be however A Macro would be nice seeing as updates are received over 20 times a day
 
Try the following

Sub Test()
Range("a:a").Replace 1, "Closed", lookat:=xlWhole
Range("a:a").Replace 0, "Open", lookat:=xlWhole
Range("c:c").Replace "NULL", "", lookat:=xlWhole
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top