Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VB Script opening Edge Webpage

VB Script opening Edge Webpage

VB Script opening Edge Webpage

I have the below script which opens a webpage in Edge.

Set objShell = CreateObject("WScript.Shell")
objShell.Run "msedge http://ceto/dhms/login.aspx"

Struggling to find code to refresh the page once it loads - it doesnt need to be done more than once just when it loads.

The reason for this is when it loads in our citrix environment it doesn't load the site in IE Compatibility mode but when you refresh it does but cant ask users to do this :)

RE: VB Script opening Edge Webpage

Have you tried a SendKeys method, i.e. adding something like:


Wscript.Sleep 3000
objShell.SendKeys "{F5}" 

Also, consider using AppActivate in case a user does something to make the Edge window lose focus.

Hope this helps...

RE: VB Script opening Edge Webpage

This has worked a treat thankyou so much.

RE: VB Script opening Edge Webpage

Glad it worked for you. Thanks for posting back.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close