Message 1 of 6
macro in vba
Not applicable
11-13-2008
06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I have been experimenting with VBA and I am trying to take one of my extensive macros and convert it into VBA code. I have been told not to use the sendcommand option but I cannot find another way. All I am trying to do is have a button act just like the macro but I eventually need to create folders and copy dxfs to a new folder so I think converting the macro to VBA code first would be a better idea. The macro prompts the user to enter a number onto the object, scales the object , and finally dxfout. I appreciate all advice.
Here is my macro.
^C^C-LAYER;FREEZE;ENGRAVING;;XPLODE;ALL;;;;ALL;XPLODE;ALL;;;;ALL;-LAYER;T;ENGRAVING;LO;0;LO;ETCH;;ERASE;ALL;;-LAYER;U;0;U;ETCH;;-PURGE;ALL;;N;-LAYER;SET;ETCH;;DT;STYLE;STANDARD;\14;90;SCALE;all;;0,0;.03937;z;e;DXFOUT; ;
I have been experimenting with VBA and I am trying to take one of my extensive macros and convert it into VBA code. I have been told not to use the sendcommand option but I cannot find another way. All I am trying to do is have a button act just like the macro but I eventually need to create folders and copy dxfs to a new folder so I think converting the macro to VBA code first would be a better idea. The macro prompts the user to enter a number onto the object, scales the object , and finally dxfout. I appreciate all advice.
Here is my macro.
^C^C-LAYER;FREEZE;ENGRAVING;;XPLODE;ALL;;;;ALL;XPLODE;ALL;;;;ALL;-LAYER;T;ENGRAVING;LO;0;LO;ETCH;;ERASE;ALL;;-LAYER;U;0;U;ETCH;;-PURGE;ALL;;N;-LAYER;SET;ETCH;;DT;STYLE;STANDARD;\14;90;SCALE;all;;0,0;.03937;z;e;DXFOUT; ;