AutoCAD Text Window Locks up after running VBA app.

Discussion in 'AutoCAD' started by Bill Debevc, Nov 10, 2004.

  1. Bill Debevc

    Bill Debevc Guest

    I created a MOTD command that opens a html document within a VBA form.





    The VBA routine works correctly except the AutoCAD Text Window locks up
    after running the code within ADT 2005 sp1.



    Any ideas why the Text Window would lock up?



    Thanks in advance



    Bill Debevc





    VBA informaiton:



    Reference: Microsoft Internet Controls.



    Code:

    Private Sub UserForm_Initialize()

    WebBrowser1.Navigate2 ("k:\cad standards\motd\motd.htm")

    End Sub



    Private Sub btnClose_Click()

    End

    End Sub



    Form information:

    1.. Microsoft Web Browser control
    2.. Button called btnClose
     
    Bill Debevc, Nov 10, 2004
    #1
  2. Well you never unload the form and using END is not recommended. Plus, you
    are not leglly allowed to use the web browser control in VBA --- if it
    isn't a default tool and you have to browse for it, you can't use it!

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Nov 12, 2004
    #2
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 (here). After that, you can post your question and our members will help you out.