#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sendkeys

Sub SendURL()
Shell "C:\Program Files\Internet Explorer\iexplore.exe", vbNormalFocus
SendKeys "www.google.com", True
End Sub

This procedure can open IE, but the URL isn't entered into address bar.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Sendkeys

Hi,

If you hard coding the URL why bother with sendkeys, why not like this

MyPage = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE
http://www.google.com", vbNormalFocus)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"wangww" wrote:

Sub SendURL()
Shell "C:\Program Files\Internet Explorer\iexplore.exe", vbNormalFocus
SendKeys "www.google.com", True
End Sub

This procedure can open IE, but the URL isn't entered into address bar.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Sendkeys

Or even simply

ThisWorkbook.FollowHyperlink "http://www.google.com"

Regards,
Peter T

"wangww" wrote in message
...
Sub SendURL()
Shell "C:\Program Files\Internet Explorer\iexplore.exe", vbNormalFocus
SendKeys "www.google.com", True
End Sub

This procedure can open IE, but the URL isn't entered into address bar.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
right-Alt with SendKeys Tom D Excel Programming 0 October 1st 07 09:07 PM
SendKeys Help ajvasel Excel Programming 2 August 9th 06 04:48 PM
Always Sendkeys... Duncan[_5_] Excel Programming 0 May 4th 06 09:10 AM
Sendkeys Jim Excel Programming 1 April 16th 05 06:44 PM
SendKeys? CMK Excel Programming 2 February 23rd 05 12:03 AM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"