Visual Basic HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  | |
May 16th, 2002, 09:55 PM
|
#1 (permalink)
| | Member
Join Date: May 2002
Posts: 353
| Visual Basic HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Alright, I just started using the visual basic editor in Word 97, and I have been fooling around with a trying to make a program, but I am having a few problems. First, in my program, I cannot figure out how to make a command button, that when you click on it, it opens another program. And second, I can't figure out how to make it into a .EXE when I am all finished with it. Can anyone help me please????????!!!!!!!!!!!!
__________________
Make like Hendrix.
|
| |
May 16th, 2002, 10:11 PM
|
#2 (permalink)
| | Indispensable Member
Join Date: Oct 2001 Location: YeeHaw! Dallas
Posts: 18,661
|
Well, Virtual Bovines have just been ruled out.  |
| |
May 16th, 2002, 10:14 PM
|
#3 (permalink)
| | Member
Join Date: Oct 2001 Location: NE Arkansas
Posts: 143
|
Well.. you can not compile a visual basic for applications program into an .exe. At least not to my knowledge. The other thing can be done give me a bit to remember how. Sorry not much help I know.
__________________
Laziness is the mother of all invention. --the hig
|
| |
May 16th, 2002, 10:17 PM
|
#4 (permalink)
| | Indispensable Member
Join Date: Oct 2001 Location: YeeHaw! Dallas
Posts: 18,661
|
Hey thehig!!  Where ya been? Good to see you!
Sorry George VII ... about being way off topic.  |
| |
May 16th, 2002, 10:23 PM
|
#5 (permalink)
| | Member
Join Date: May 2002
Posts: 353
|
*whistles and looks around inicently* what do you mean? What topic?
Yes, that does rule out Virtual Bovines, which is not exactly my specialty!  |
| |
May 16th, 2002, 10:51 PM
|
#6 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,400
|
thehig is correct, you can't compile a VBA program into an exe it is stored into the document itself 
To create an exe you'll have to get the full version of VB6 (or VB.NET if you're really wantin' to push it lol)
For the command button, there should be a "Toolbox" button on the command bar somewhere, that will allow you to add controls like that.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
May 17th, 2002, 09:40 AM
|
#7 (permalink)
| | Ultimate Member
Join Date: Oct 2001
Posts: 1,542
|
To make a command button open another program, you need first to put the command button on the form - I assume you know how to do this!
Then, in its Click event, put this code: Code: Shell "pathname\exename", vbNormalFocus
|
| |
May 17th, 2002, 03:08 PM
|
#8 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,400
|
Whoops  misread about the command button... sorry 
Yup strangerstill's method should work  |
| |
May 18th, 2002, 06:46 PM
|
#9 (permalink)
| | Member
Join Date: May 2002
Posts: 353
|
Thanks! I'll try this. -me |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |