View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
Michael Davis Michael Davis is offline
external usenet poster
 
Posts: 2
Default VBA Code== Goto a webpage using a command button in a UserForm

On Saturday, August 17, 2013 4:53:26 AM UTC-4, Harald Staff wrote:
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





skrev i melding

...

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