+ Reply to Thread
Results 1 to 2 of 2

VBA Form problem over an Intranet

  1. #1
    Gary
    Guest

    VBA Form problem over an Intranet

    Hi

    I've designed a VBA lookup form for a company using Excel 2000, VB6. I've
    set it to autoload upon opening the Worksheet by using

    ThisWorksheet
    Private Sub Worksheet_Open()
    frmMapping.Show
    End Sub

    Everything works fine on my Desktop version and also on the one posted on
    the Company's intranet, except that (on the intranet version only), when you
    switch to another application and then return the program hangs and you have
    to end task via the Task Manager. Once this is closed, I've found the
    original copy is still running in the background, so it appears to be trying
    to load itself in twice after losing focus. It has been loaded onto the
    intranet via Windows Explorer for Windows 2000.

    Is there any way of resolving this, or must I force users to end the session
    and create a new session every time with an Exit button and Application.Quit?

    Any advice would be welcomed.

  2. #2
    Gary
    Guest

    RE: VBA Form problem over an Intranet

    Doesn't matter, I've found a workaround.

    In case anyone else has the same problem, The Form worked perfectly once the
    it was closed and re-opened manually from inside Excel, but the Intranet
    version did not understand the automation Workbook Open on first load, and
    upon losing focus to another application it was trying to re-open the
    Workbook and reload a second version of the Form over the first one, which
    was causing it to hang.

    I couldn't leave it up to users to close and reopen the form, so instead of
    automatically loading, I've set a Command Button on the Worksheet to manually
    load the form, which gets around the problem but I still have no idea why
    this should happen.


+ Reply to Thread

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