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

Renaming File 1

Status
Not open for further replies.

SeaRay

Technical User
Jan 8, 2002
20
US
When I execute this command, I get an error that says it can't find file. It hi-lites the "Name strFileName As "Credit.txt" line. What did I do wrong?

Private Sub Command1_Click()

Dim strFileName As String
strFileName = Dir$("C:\~Master Files\SSM\001 Crday_*.001")
If strFileName <> &quot;&quot; Then
Name strFileName As &quot;Credit.txt&quot;
End If

End Sub

Thanks, Rick Ruscin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top