Results 1 to 11 of 11

Workbook doesn't open (Lost Focus)

Threaded View

  1. #5
    Registered User
    Join Date
    08-23-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Workbook doesn't open (Lost Focus)

    Quote Originally Posted by romperstomper View Post
    I can't say I'm particularly curious - I suspect it's a DDE timeout - but the workarounds are quite simple. However, I loathe nag screens so it's one of the few things I won't assist with (like flashing cells).
    I can't replicate your other issue - can you provide sample code to show the exact sequence of events?
    I have a solution, I just look for the reason. My solution is to use a modeless and/or timer controled form.

    Other issue

    Please install the attached AddIn and look that you have any workbook in the background when you start the Macro in the AddIn.


    
    Sub LoseControlOverActiveWorkbook()
    Dim wkbBackup As Workbook
    Set wkbBackup = ActiveWorkbook
    Call MsgBox("Active Workbook: " & wkbBackup.Name & vbCrLf & "Please click in the following userform first on one of the 2 Buy buttons - that link to www.google.com - and then on the button Continue. The Active Workbook will then change and I will try to reactivate the old workbook, but that will fail!")
    frmTrial.Show
    Call MsgBox("Active Workbook: " & ActiveWorkbook.Name)
    wkbBackup.Activate
    Call MsgBox("Active Workbook after I tried to reactivate the saved workbook " & wkbBackup.Name & " : " & ActiveWorkbook.Name)
    End Sub
    Attached Files Attached Files
    Last edited by romperstomper; 11-24-2010 at 10:04 AM. Reason: code tags

Thread Information

Users Browsing this Thread

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

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