+ Reply to Thread
Results 1 to 5 of 5

How do I use Process.Start to open an IExplorer webpage from Excel using a command button?

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    Florida-USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    How do I use Process.Start to open an IExplorer webpage from Excel using a command button?

    I am very new at using Visual Basic so forgive my ignorance and I am sure this is probably a very simple task, but I have spent 2 hours this morning trying to research and test it and I keep getting an error when clicking the form button I added to my Excel spreadsheet to open up IE and go to a specific webpage when clicking this button. I just want this webpage to open up, then the user and type in their username and password on their own. So far I have the following:

    Sub Button189_Click()
    Process.Start ("C:\Program Files\Internet Explorer\iexplore.exe","https://westower.quickbase.com/db/main?a=SignIn")
    End Sub

    The name of my workbook is "iDEN PO tracker Phase 2.xlsm" and the worksheet is "Phase II - PO Tracker". I would like the user to simply click this form button and then have Internet Explorer open up to this specific web page. That all.

    Can someone look at the 1 line of code and see why it won't work? I copied it from an example I found when searching "help" and added in my own file paths.

  2. #2
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: How do I use Process.Start to open an IExplorer webpage from Excel using a command but

    This is better posted to Excel Forum VBA, but this should work for you.


    ThisWorkbook.FollowHyperlink "https://westower.quickbase.com/db/main?a=SignIn"
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How do I use Process.Start to open an IExplorer webpage from Excel using a command but

    There's no such thing such as Process.Start in standard VBA, I believe Process.Start is a .Net thing.

    The VBA equivalent is probably Shell but if all you want to do is open a webpage then using FollowHyperlink, as Janos suggests, would probably suffice.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    09-21-2013
    Location
    Florida-USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: How do I use Process.Start to open an IExplorer webpage from Excel using a command but

    AWESOME AWESOME AWESOME... it works, .. the only thing I had to do extra was to "ENABLE COOKIES". It works perfectly!!! I knew it was something super easy and basic. I will learn this yet!!!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How do I use Process.Start to open an IExplorer webpage from Excel using a command but

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] open word file via command button in excel
    By AliiShariff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2012, 09:19 PM
  2. Excel Command button to open a Microsoft Access query
    By Bineyo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2012, 04:31 PM
  3. Open .ppt file from excel command button
    By DrEvilAces in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2009, 06:03 AM
  4. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM
  5. Start macro by Command Button?
    By KentÄ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2005, 11:06 AM

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