Results 1 to 6 of 6

error when hiding application while another document open

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    927

    error when hiding application while another document open

    Hi

    I am getting error when I hide application in document open event and show userform
    error : you cannot close microsoft word because a dialog is open
    note the error only appear when second word file is open but no dialog is open
    any idea to avoid this error?
    I stop application alert but still, and I sendkey enter once userform load but still

    Private Sub Document_Open()
    Application.DisplayAlerts = wdAlertsNone
    Application.Visible = False
    UserForm1.Show
    End Sub
    Last edited by Undo; 11-29-2021 at 11:25 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Code Error when another Excel document is open
    By Si-Phy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2017, 09:49 AM
  2. [SOLVED] Hiding Application or a Worksheet takes away the ability to use Application properties
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2016, 05:44 PM
  3. open application ini file error
    By noob_macro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2014, 09:57 AM
  4. open excel source document in background when i open word document
    By hootiebsc in forum Word Programming / VBA / Macros
    Replies: 5
    Last Post: 03-22-2013, 07:50 PM
  5. application.workbooks.open False Error
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2012, 07:25 PM
  6. Error message with application get open filename
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-21-2011, 06:07 AM
  7. runtime error recived for some trying to open document
    By webguync in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2009, 05:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1