file not there

  • Thread starter Thread starter Curt
  • Start date Start date
C

Curt

built a new file and saved it in folder again when I try to access it gives a
5174 error code. File is in place and all correct. Rebuilt the file three
times and saved over still 5174 any ideas?
Thanks
 
hi
error 5174 is "Application-defined or Object-defined error".
Post your code. I suspect that you may have your dims mixed up.

Regards
FSt1
 
Private Sub OptionButton12_Click()
OptionButton12.Value = False
Dim word As New word.Application
Dim wordDoc As word.Document
word.Visible = True
Set wordDoc = word.Documents.Open("annc.doc")1 (yearly.doc works fine)
'word.Visible = True
End Sub
1 if I use a file that has been there this works ok any time I use a new
file or rename a file i get 5174
 

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

Back
Top