By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,743 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,743 IT Pros & Developers. It's quick & easy.

some (simple) noobie questions

P: 10
hi there, i'm already searching the internet for a couple of days to find an answer on this (simple) questions but i couln't find anything usefull.
- how to quit and open a programm like "word" with a trigger in visual basic?

- can you run your programms without opening excell first(because i'm working with vb in excell). My brother said something of .exe files but he didn't knew how to do that in visual basic because he works with java.

-how to save or load files while a programm is running?

pls help me!!

Jul 5 '06 #1
Share this Question
Share on Google+
3 Replies

P: 10
- I also have an other question:
How do you let the computer generate a random number after you click on a commandbutton.

Jul 5 '06 #2

P: 11

i think the solution is something 2 do with shell

any way teh random number is this code (vb2008)

Dim value As Integer = CInt(Int((5 * Rnd()) + 1))
type that when ever u want the random number to be generated

this code says that value is the variable that u can check that has teh random number. in that code 5 is the max number and 1 is the minimum number. try that i hope it helps you.

ill look into the shell thing for the open and exe file and get bak 2 u :)
Feb 9 '08 #3

P: 11
got it! :)

Shell("calc.exe", AppWinStyle.NormalFocus)

this opens calculator

where the "calc.exe" is change that to the location of the file u want to open fiddle around with that and it should work


Feb 9 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.