"myprogram.dvb already loaded"

Discussion in 'AutoCAD' started by bthatcher, Jul 8, 2003.

  1. bthatcher

    bthatcher Guest

    I am trying to use lisp routines to load and run my VBA code. I am using (command "-vbaload" "myprogram.dvb"), I have put this in the startup suite. And attached "-vbarun" to a button. The problem is every time a drawing loads; I get the message "myprogram.dvb already loaded". How do I get around this, thanks.
     
    bthatcher, Jul 8, 2003
    #1
  2. Hi,

    Read my post of 2 July.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    (command "-vbaload" "myprogram.dvb"), I have put this in the startup suite.
    And attached "-vbarun" to a button. The problem is every time a drawing
    loads; I get the message "myprogram.dvb already loaded". How do I get around
    this, thanks.
     
    Laurie Comerford, Jul 9, 2003
    #2
  3. bthatcher

    bthatcher Guest

    Dave K, thanks that works great. But one more question. How do I separate the (UserForm) from the (Code). I was able to get a program without a dialog box to work, but not one with a dialog. Thank you very much. Bryan T
     
    bthatcher, Jul 9, 2003
    #3
  4. bthatcher

    Gilles Guest

    You have to create a module launching your form.



     



    Something like that:



     



    Public sub myform_load()



     



    Myform.show



     



    end sub



     



    So you call the procedure, not the form. The procedure will call the form for you....



     



     



    Gilles



    "bthatcher" <> a écrit dans le message de news:...

    Dave K, thanks that works great. But one more question. How do I separate the (UserForm) from the (Code). I was able to get a program without a dialog box to work, but not one with a dialog. Thank you very much. Bryan T
     
    Gilles, Jul 9, 2003
    #4
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.
Similar Threads
There are no similar threads yet.
Loading...