Find value (31.12.9999) and clear

T

Tempy

Hi all, i am back again !! I can clear all cells with the value above In
the column "CA" by using a loop statement, but is there perhaps a better
way ??

regards,

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
 
T

Tempy

Yip, i used the following:

Sub RemoveWrongDate()
'
Range("CA:CA").Select
Selection.Replace What:="(31.12.9999)", Replacement:="",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("A1").Select
Columns("A:EP").EntireColumn.AutoFit

End Sub

If there are any other suggestions i would be gratefull

regards,

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top