vba running help...

Discussion in 'AutoCAD' started by Devronious, Aug 23, 2004.

  1. Devronious

    Devronious Guest

    What if I want to run a vba code file by itself in windows? How do I do it?

    Thanks,

    Devin
     
    Devronious, Aug 23, 2004
    #1
  2. If I understand your question accurately, you can't. You'd need to use full
    VB6 to create an executable file [exe]. VBA requires the host program.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 23, 2004
    #2
  3. Devronious

    Matt W Guest

    Write it in VB.

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | What if I want to run a vba code file by itself in windows? How do I do
    it?
    |
    | Thanks,
    |
    | Devin
    |
    |
     
    Matt W, Aug 23, 2004
    #3
  4. Devronious

    Ed Jobe Guest

    VBA requires a host process to run in. To run your code "by itself", in its
    own process, you would have to use VB to compile it to an exe.
     
    Ed Jobe, Aug 23, 2004
    #4
  5. Devronious

    MP Guest

    use vb6, compile to .exe
    vba will only run in it's parent application
    Mark
     
    MP, Aug 23, 2004
    #5
  6. Devronious

    Devronious Guest

    Thanks,

    is there a way to get excel to automatically run it without opening excel?
     
    Devronious, Aug 23, 2004
    #6
  7. Devronious

    Devronious Guest

    How bout if I send it to one of you guys and you compile it instead of me
    buying visual basic?

    Thanks,

    Devin
     
    Devronious, Aug 23, 2004
    #7
  8. Devronious

    Matt W Guest

    How about no.

    What *exactly* are you trying to do?? You've mentioned AutoCAD, then you
    through Excel into the mix.
    You don't want AutoCAD open and now it sounds like you don't want Excel open
    but you still want to run some sort of VBA app. Something's gotta give.

    It's like asking someone to drive their car without gas and a key.

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.

    | How bout if I send it to one of you guys and you compile it instead of me
    | buying visual basic?
    |
    | Thanks,
    |
    | Devin
    |
    |
     
    Matt W, Aug 23, 2004
    #8
  9. Nathan Taylor, Aug 24, 2004
    #9
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.