Getting the root of the macro

Discussion in 'AutoCAD' started by juno, Mar 28, 2005.

  1. juno

    juno Guest

    I have a macro that would be distributed to several locations. What I would like the macro to be able to do is to be able to locate it’s location.

    So if I move the macro to a different location it should give me it’s new location.

    Any ideas???
     
    juno, Mar 28, 2005
    #1
  2. juno

    Matt W Guest

    This will give you the full file name (drive, path & file name).

    MsgBox ThisDrawing.Application.VBE.ActiveVBProject.FileName
     
    Matt W, Mar 28, 2005
    #2
  3. juno

    juno Guest

    Thank you Matt. That's exactly what i need.

    -Juno
     
    juno, Mar 28, 2005
    #3
  4. juno

    Matt W Guest

    Glad I could help.
     
    Matt W, Mar 28, 2005
    #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.