+ Reply to Thread
Results 1 to 6 of 6

error when hiding application while another document open

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

    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

    Please Login or Register  to view this content.
    Last edited by Undo; 11-29-2021 at 11:25 AM.

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    20,875

    Re: error when hiding application while another document open

    Please attach the file with the code. If you cannot share the file then show the code you are using, and use CODE tags.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: error when hiding application while another document open

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    20,875

    Re: error when hiding application while another document open

    When I run this code I do not get an error. I have several documents already open, and the userform is shown with no error. What do you mean by "second word file"?

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

    Re: error when hiding application while another document open

    Yes I was mean if there is more than one document active
    see this my file, dont worry about empty userform, just see if the error exist or no if u already open another form
    note: let userform show once doc open
    Attached Files Attached Files

  6. #6
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    20,875

    Re: error when hiding application while another document open

    I open your file, get a blank userform, and no error.

+ Reply to Thread

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