Solved

Open a Window from Visual Basic

Posted on 1998-10-30
3
164 Views
Last Modified: 2013-12-26
How can I open a window from Visual Basic, using some API function?. I know it's posible if you know the window's name.

Thank you
0
Comment
Question by:raskia
  • 3
3 Comments
 
LVL 2

Accepted Solution

by:
BergJC earned 50 total points
ID: 1488057
Use AppActivate, if you know the window name
0
 
LVL 2

Expert Comment

by:BergJC
ID: 1488058
Example:

AppActivate "Microsoft Word"      
0
 
LVL 2

Expert Comment

by:BergJC
ID: 1488059
By the way, AppActivate isn't an API, it's a VB command.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question