Default VBA Project in ACAD?

Status
Not open for further replies.

Alain

Usenet Archive
Joined
Apr 18, 2000
Messages
16
Reaction score
0
Hi all.

Is there a way to specify a default VBA project in an ACAD profile?

My VBA project file seems to unload automatically everytime I load a new drawing?!? How can I write my vba code and save it in a way that it will always be loaded reguardless of the drawing that is being opened?

Thanks.
 
umm you shouldnt have that problem unless you embed the code into the drawing...i load all mine at startup and then use them throught all my drawings "alain" wrote:

Hi all.

Is there a way to specify a default VBA project in an ACAD profile?

My VBA project file seems to unload automatically everytime I load a new drawing?!? How can I write my vba code and save it in a way that it will always be loaded reguardless of the drawing that is being opened?

Thanks.
 
Thanks Jaime.
That was my problem. I was writing my code in the "ThisDrawing" object. I created a new VBA Module and put my code in it instead and it worked fine.

"Jaime" wrote:

umm you shouldnt have that problem unless you embed the code into the drawing...i load all mine at startup and then use them throught all my drawings "alain" wrote:

> Hi all.
>
> Is there a way to specify a default VBA project in an ACAD profile?
>
> My VBA project file seems to unload automatically everytime I load a new
> drawing?!? How can I write my vba code and save it in a way that it
will
> always be loaded reguardless of the drawing that is being opened?
>
> Thanks.
>
>
>
 
Status
Not open for further replies.

Latest threads

Back
Top