forms example

forms example

Anonymous
Not applicable
576 Views
4 Replies
Message 1 of 5

forms example

Anonymous
Not applicable
have somebody an example from a program that loads a form (for selecting
something) and then going
back to the program (vba acad 2002)


Where can I find good vba examples of different things?

thanks in advance.
0 Likes
577 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi,

You can find code to do almost anything you need in the help files.

In one of your programs type in "Load" select it and press F1.

This will lead you to sample code for doing what you want.

--


Laurie Comerford
CADApps
www.cadapps.com.au

"gvanaco" wrote in message
news:[email protected]...
> have somebody an example from a program that loads a form (for selecting
> something) and then going
> back to the program (vba acad 2002)
>
>
> Where can I find good vba examples of different things?
>
> thanks in advance.
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Another great place to find code or answers to your question is in the
archives of this newsgroup at groups.google.com
You can browse down to the autodesk.autocad.customization.vba group (to get
to the group faster, search for "autocad custom") and then do a search for
your problem ONLY within the group.

In this case, the following search might help:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=form+hide+sele
ct&meta=group%3Dautodesk.autocad.customization.vba

I always try a few searches before I post -- it usually takes a couple of
tries to find the best search phrase.

Good luck,
James

"gvanaco" wrote in message
news:[email protected]...
> have somebody an example from a program that loads a form (for selecting
> something) and then going
> back to the program (vba acad 2002)
>
>
> Where can I find good vba examples of different things?
>
> thanks in advance.
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hi,

Place the following lines in your code, these open the userform
Load UserForm1
UserForm1.Show
and place the following in the code part of your userform, these close the
userform. (You need two buttons named "CmdOK" and "CmdCancel" on your
UserForm.
Private Sub CmdOK_Click()
Cancel = False
Unload CutLineSettings
End Sub
Private Sub CmdCancel_Click()
Cancel = True
Unload UserForm1
End Sub
As said in other replies learn to used and make use of the help files there
are a lot of examples there.

Good luck.

Sean Bartleet

"gvanaco" wrote in message
news:[email protected]...
> have somebody an example from a program that loads a form (for selecting
> something) and then going
> back to the program (vba acad 2002)
>
>
> Where can I find good vba examples of different things?
>
> thanks in advance.
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
Tanks a lot for the information

I gone a take a look first to the other posts



Thanks



"Sean Bartleet" wrote in
news:[email protected]:

> Hi,
>
> Place the following lines in your code, these open the userform
> Load UserForm1
> UserForm1.Show
> and place the following in the code part of your userform, these close
> the userform. (You need two buttons named "CmdOK" and "CmdCancel" on
> your UserForm.
> Private Sub CmdOK_Click()
> Cancel = False
> Unload CutLineSettings
> End Sub
> Private Sub CmdCancel_Click()
> Cancel = True
> Unload UserForm1
> End Sub
> As said in other replies learn to used and make use of the help files
> there are a lot of examples there.
>
> Good luck.
>
> Sean Bartleet
>
> "gvanaco" wrote in message
> news:[email protected]...
>> have somebody an example from a program that loads a form (for
>> selecting something) and then going
>> back to the program (vba acad 2002)
>>
>>
>> Where can I find good vba examples of different things?
>>
>> thanks in advance.
>>
>
>
>
0 Likes