Results 1 to 5 of 5

Use ShellExecute to launch the default Web browser - 64 Bit!

Threaded View

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Use ShellExecute to launch the default Web browser - 64 Bit!

    Greetings,
    I had been using following code to launch the default Web browser (Chrome) when my system was 32 bit.
    Note: I had got following code from this link: http://support.microsoft.com/en-us/kb/224816
    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 Sub Command1_Click()
       Dim r As Long
       r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)
    End Sub
    I have upgraded my system to 64 bit, but code above doesnt work anymore...
    Any idea will be appreciated...

    Edit: This is error picture;
    http://i.cubeupload.com/1GiQUn.png
    Last edited by HerryMarkowitz; 04-06-2015 at 08:12 AM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Launch Chrome Browser and Return Focus to Excel
    By Jagstrom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2014, 11:38 PM
  2. Launch a single browser window with multiple tabs
    By ALN1991 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2013, 11:10 AM
  3. [SOLVED] Web hyperlinks: default browser and resulting browser window size?
    By gjh3124@yahoo.com.au in forum Excel General
    Replies: 4
    Last Post: 05-18-2006, 11:25 PM
  4. Launch new browser window from an excel web page
    By Hal Anderson in forum Excel General
    Replies: 2
    Last Post: 01-19-2006, 10:15 PM
  5. Launch new browser window from hyperlink within Excel
    By Hal Anderson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-01-2005, 07:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1