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

Search and Replace in Text File

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
I am using this to search a text file, how can I replace that with currTime:

If InStr(1, (Mid(sData, 32, 1)), "0", vbBinaryCompare) Then
'Replace the 0 with current Time
End If
 
Any good?

If InStr(1, (Mid(sData, 32, 1)), Format(Now(), "hh:mm:ss"), vbBinaryCompare) Then
'Replace the 0 with current Time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top