ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   file not there (https://www.excelbanter.com/excel-programming/402746-file-not-there.html)

Curt

file not there
 
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

FSt1

file not there
 
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

"Curt" wrote:

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


Curt

file not there
 
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

"FSt1" wrote:

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

"Curt" wrote:

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



All times are GMT +1. The time now is 08:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com