In my VB application, I have command buttons set up so when a user clicks on one of them an application executes. If the path to that exe is not the default location, I need it to then search all the drives mounted on that particular machine until it finds that exe name. So what is the call to...
In my VB application, I have command buttons set up so when a user clicks on one of them an application executes. If the path to that exe is not the default location, I need it to then search all the drives mounted on that particular machine until it finds that exe name. So what is the call to...
Thanks again TomKane and I am an idiot. I can't believe I've had that big of a brain fart for the past 4 days to not be able to figure that out. Anyway, thanks.
I am using the shell command to pass a variable to another vb program like this:
Shell "C:\Folder\App.exe sName"
sName holds a value like "Bob". But when I call the second app with sName attached to the end of it, the Command only sees sName as sName and not the value...
WZUP,
Thanks for all of your help. I finally got it to work. I made to sample projects and tried it that way and it worked like a charm. I still can't get it to work in my "real" applications but I must be doing something wrong. I will keep trying since I know it will work. Thanks...
WZUP, Dude, I'm sorry... I can't get this thing to work. I know I must be doing something wrong but I keep getting the same error. Instead of a textbox, I am using a label. I am only having to pass the username so I don't have to hide it. Here is what I have going on.
Logon Form:
The...
WZUP,
I keep getting a "No foreign application responded to a DDE initiate" error everytime I try to change the LinkMode from 0. I have set the other properties LinkTopic, LinkItem etc...
WZUP, that sounds interesting and like a good solution. Could you tell me more on how you use the LinkItem ect. Like the syntax on how you use them. Thanks.
I need the 2nd app to run synchronously. So the main app will know when the 2nd app has finished executing. I need a Win32 API call to process another thread or so I've heard.
I need the 2nd app to run synchronously. So the main app will know when the 2nd app has finished executing. I need a Win32 API call to process another thread.
Thanks DrJavaJoe, the only problem with this is that the other application is going to still be open along with the new application. Sorry to leave that out when I posted.
Thanks Tom, the only problem with this is that the other application is going to still be open along with the new application. Sorry to leave that out when I posted.
I have a login screen that allows the user access to the Main Application. If the user successfully logs in, the Main App displays a list of command buttons that when clicked, will execute another application. Now what I need is to pass the application being launched the username of the user...
I have a login screen that allows the user access to the Main Application. If the user successfully logs in, the Main App displays a list of command buttons that when clicked, will execute another application. Now what I need is to pass the application being launched the username of the user...
I need to loop through all the rows in an Excel file that has data in each row. If I use Workbooks.Application.Rows.Count it returns every row (65235) or whatever. I usually just have around 100 or so rows with data in them. I'm using a For loop to do this. My code goes something like this...
I have a string with a value that looks like this "w81flr05102202". I need to only get the first six characters out of that string. How do I do that in VB. I was thinking of using the Split function but didn't see any delimiter I could use.
Thanks Justin. I figured out what I was doing wrong. I never did the New Excel.Application. I declared two Excel.Applications's without the second one being new. Anyway, thanks a lot bro.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.