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!

Verify if file is opened ???

Status
Not open for further replies.

dcupola

Programmer
Jan 20, 2002
1
0
0
BR
How can i verify this?????
 
You can use this:

On Error Resume Next
Open YourFile For Input As #1
If Err.Number = 55 then
'file is open
Else
're-close file
Close #1
Next

Chris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top