why cant this run?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
why cant this run?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
kemp
Guest





Posted: Thu Mar 24, 2005 10:09 pm    Post subject: why cant this run? Reply with quote

I'm trying to make a command line method to load a vb script I just
created but I'm missing something really basic it seems.

What I have so far is this:

(vl-vbaload "Setup.dvb")

(defun c:setup ()
(vl-vbarun "Setup")
)

I have the path to this file in the support paths, I can see the dvb
file is getting loaded, but the form I want to appear is not showing up.
The dvb project name has been renamed to "Setup" to match the file name.
I guess maybe I'm just missing the data that will load UserForm1?

Any help is appreciated, thanks!

kemp

Back to top
juno
Guest





Posted: Thu Mar 24, 2005 10:49 pm    Post subject: Re: why cant this run? Reply with quote

Add this code to you Module1:
----
Sub runMyform()
UserForm1.Show
End Sub
----

Add this to your lisp
---
^c^c(defun c:setup()(command "-vbarun""Setup.dvb!Module1.runMyform")(princ))
---

Let me know if that worked out for you
-Juno
Back to top
Koistya `Navin (TechProje
Guest





Posted: Sat Mar 26, 2005 2:43 pm    Post subject: Re: why cant this run? Reply with quote

And... How to make a test: if specified vba-script is already loaded, run
macros otherwise - first load, then run.

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB