Error 5479

D

Donhuff

When I run the following MACRO from a VBA form, I get error 5479, cannot
close word because a dialog box is open. I'm not trying to close word (at
least I don't think so). Open_Docs is a MACRO VBA form.

Private Sub CommandButton1_Click()
ChangeFileOpenDirectory "C:\users\dhuffaker\Documents\xmydata\CorpExam\Corp\"
Documents.Open FileName:="DOR.doc"
Application.Dialogs(wdDialogFileSaveAs).Show
Unload Open_Docs
End Sub
 
J

Jacob Skaria

Let us know what you are trying to achieve....

You wanna open a document and save as....
OR
You wanna open a document from dialog box

If this post helps click Yes
 
D

Doug Robbins - Word MVP on news.microsoft.com

Use Me.Hide instead of Unload Open_Docs

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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