Question for Joel

B

Barb Reinhardt

It looks to me like you didn't include the extension. .xls ...etc. If
that doesn't work, come back.

I think I'd do something like this

Dim myWB as excel.workbook

on error resume next
Set myWB = Workbooks.Open Filename:=Fl & "\" & fname
on error goto 0

if mywb is nothing then
Msgbox("Workbook not opened.")
End
End if
 

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