M
mdavis1154
I want to write a code so when I press a command button in a userform it will take me to a particular website.. Anyone know how to do this??
Thanks
Thanks
take me to a particular website.. Anyone know how to do this??
Thanks
GS said:Oops, a typo...
ShellExecute 0&, vbNullString, "URL http info", vbNullString,
vbNullString, vbNormalFocus
GS said:It should perhaps be noted that this will open the user's default browser.
GS said:Yes, I assumed this to be the best idea (in all cases) but I agree with
you that I should have mentioned it!
GS said:Maybe not in all cases. If you have, say, documentation written in HTML that
was only tested on MSIE, then you might want to ensure that your page opens
*only* in MSIE, regardless of the user's settings.
Just to mention an alternative:
Sub Click()
ActiveWorkbook.FollowHyperlink "https://www.google.com/"
End Sub
This worked perfectly. if this is the alternative, yet works so simply, why use the first method mentioned in the first post? Thanks for all the help!
Best wishes Harald
<[email protected]> skrev i melding
ThisWorkbook? Thanks Garry!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.