Solved

URL Execution

Posted on 2000-03-01
2
145 Views
Last Modified: 2010-05-02
How do I access an URL through my VB application
0
Comment
Question by:arun_dp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Gordonp earned 50 total points
ID: 2572600
USe the ShellExecute API Call

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Const WS_MAXIMIZE = &H1000000


Then use like

Private Sub Command1_Click()
ShellExecute(Form1.hWnd,"Open","http://www.experts-exchange.com","","",WS_MAXIMIZE)
End Sub

This opens the specified URL in your default Web Browser

Gordon
0
 
LVL 20

Expert Comment

by:hes
ID: 2573577
You can also use the WebBrowser object on a form and

WebBrowser1.Navigate "www.your.destination"
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 166
Export Data to Different .csv Files 27 133
Visual Basic 6: Code needed for TripleDES Encryption/Decryption 14 95
Macro problems with Excel file 6 53
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

710 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