asbest
Civil/Environmental
- Mar 23, 2005
- 2
In the program that I am developping, in a form with a command button, every time the command button is activated a particular WORD file should be viewed.
I tried this with following program steps:
Set LV_WORD_App = CreateObject ("Word.Application")
LV_Word_App.Visible = True
Documents.Open "D:\60030508BOOM04.doc"
This works fine, but when I try to reopen the file with the same button, I get an error message 'automation error'. I tried to solve this problem by closing Word by adding the line
Set LV_Word_App = Nothing
But with no success.
Can anybody help me?
I tried this with following program steps:
Set LV_WORD_App = CreateObject ("Word.Application")
LV_Word_App.Visible = True
Documents.Open "D:\60030508BOOM04.doc"
This works fine, but when I try to reopen the file with the same button, I get an error message 'automation error'. I tried to solve this problem by closing Word by adding the line
Set LV_Word_App = Nothing
But with no success.
Can anybody help me?