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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Find & Replace ~ 2

Status
Not open for further replies.

APElliott

Technical User
Jul 9, 2002
165
GB
Hello,

Is there a way to replace this character "~"!

I can't get rid of it in my excel workbook unless I manually delete each one!

Thanks,

Andrew [afro]
 
Where is the ~ symbol occuring? Might it be possible to filter for things not containing or not equal to ~ then copy the sheet into another sheet?

dyarwood
 
Hello,

I've imported some data that we've been sent and the ~ symbol appears in situations like this (~Approximate Quantity~), ~Pairs~, ~In 75Nr~!

I've tried to filter on data that contains ~ but it isn't recognised!

Help
 
If you use the following macro it will remove all cells which equal ~ in the first column.

Range("A1").Select
Do Until IsEmpty(ActiveCell)
If ActiveCell.Value = "~" Then
ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.Offset(1, 0).Select
End If
Loop


If the ~ symbol is in other columns you could add in a second loop to move across the columns.

dyarwood
 
Precede your ~ with a ~. Same goes fo any wildcard character, so Edit Find:-

~~
or
~?
or
~*

etc

Regards
Ken...........

----------------------------------------------------------------------------
Attitude - A little thing that makes a BIG difference
----------------------------------------------------------------------------
 
Cheers Ken,

Doubling up on the characters works perfect.

I'd already tried the ? and * after the symbol, but without success!

Thanks

Andrew [thumbsup2]
 
Make sure you are not just doubling the characters though. Each wildcard character regardless of what it is, needs to be preceded with a tilde ~

Regards
Ken................

----------------------------------------------------------------------------
Attitude - A little thing that makes a BIG difference
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top