home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Visual Basic HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1919
Discussions: 200,992, Posts: 2,379,902, Members: 246,360
Old May 16th, 2002, 09:55 PM   Digg it!   #1 (permalink)
Member
 
Join Date: May 2002
Posts: 353
Send a message via MSN to George VII
Question
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.
George VII is offline   Reply With Quote
Old May 16th, 2002, 10:11 PM     #2 (permalink)
Indispensable Member
 
surreal's Avatar
 
Join Date: Oct 2001
Location: YeeHaw! Dallas
Posts: 18,661
Send a message via ICQ to surreal Send a message via AIM to surreal Send a message via Yahoo to surreal
Well, Virtual Bovines have just been ruled out.
surreal is online now   Reply With Quote
Old May 16th, 2002, 10:14 PM     #3 (permalink)
Member
 
thehig's Avatar
 
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
thehig is offline   Reply With Quote
Old May 16th, 2002, 10:17 PM     #4 (permalink)
Indispensable Member
 
surreal's Avatar
 
Join Date: Oct 2001
Location: YeeHaw! Dallas
Posts: 18,661
Send a message via ICQ to surreal Send a message via AIM to surreal Send a message via Yahoo to surreal
Hey thehig!! Where ya been? Good to see you!


Sorry George VII ... about being way off topic.
surreal is online now   Reply With Quote
Old May 16th, 2002, 10:23 PM     #5 (permalink)
Member
 
Join Date: May 2002
Posts: 353
Send a message via MSN to George VII
*whistles and looks around inicently* what do you mean? What topic?

Yes, that does rule out Virtual Bovines, which is not exactly my specialty!
George VII is offline   Reply With Quote
Old 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.
vass0922 is online now   Reply With Quote
Old May 17th, 2002, 09:40 AM     #7 (permalink)
Ultimate Member
 
strangerstill's Avatar
 
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
strangerstill is offline   Reply With Quote
Old 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
vass0922 is online now   Reply With Quote
Old May 18th, 2002, 06:46 PM     #9 (permalink)
Member
 
Join Date: May 2002
Posts: 353
Send a message via MSN to George VII
Thanks! I'll try this. -me
George VII is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3083)
Charges against non-tippers dropped.. (20)
Health Care Rationing (13)
Delete an OS (17)
Nvidia GTX 260 problem (10)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
[F@H SPAM 11/16/09] ! 1/2 months to.. (40)
windows 7 problem (7)
Internet Lost (5)
Recent Discussions
Print spooler problem (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (40)
Foxconn Blackops x48 MoBo (3)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Nvidia GTX 260 problem (10)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)


All times are GMT -4. The time now is 09:33 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28