Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default copy website to worksheet

Hello all,

I want to copy a frame from a website to my excel worksheet. with some
sendkeys actions i selected the right frame, but i can't copy it.
Is there a simple way to get this done?
Here is my code i used now.

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True


'Go to this Web Page!
IE.Navigate "myURL"


'Check for good connection to web page loop!
Do
If IE.ReadyState = 4 Then
IE.Visible = False
Exit Do
Else
DoEvents
End If
Loop


'Wait for window to open!
Application.Wait (Now + TimeValue("0:00:01"))
'MsgBox "Done"
IE.Visible = True


'Send logg-on information!
'May need additional SendKeys as needed?
'Determine by the actual key-stroks needed!

Password = Sheets("blad1").Cells(2, 1).Value
Inlogname = Sheets("blad1").Cells(1, 1).Value
SendKeys (Inlogname), True
SendKeys "{TAB}", True
SendKeys (Password), True
SendKeys "{ENTER}", True
Application.Wait (Now + TimeValue("0:00:03"))
SendKeys "^{TAB}"
SendKeys "^{TAB}"
SendKeys "^{TAB}"
SendKeys "^{TAB}"
SendKeys "^{TAB}"
SendKeys "^{TAB}"

End Sub

Under the last sendkeys i tried selection.copy, but then he copy's the
selection of the worksheet and not the one from the page.
I don't know what there is wrong, but i hope someone of you can give me
hint.

Thanks Chris

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
Can I go to a website using a macro in a worksheet? Tony Excel Discussion (Misc queries) 3 January 8th 08 08:00 PM
How can I link from an external website to a particular worksheet Zircom Excel Worksheet Functions 0 May 5th 06 04:30 PM
Macro to Copy data from e-mail and paste it into a field on a website joebobcletusjr Excel Programming 0 February 16th 05 05:19 PM
Copy from website to Excel reno Excel Programming 0 January 25th 05 07:49 PM
How Do I Copy a Website Page To A Sheet? FredC[_2_] Excel Programming 5 September 7th 04 07:17 AM


All times are GMT +1. The time now is 07:19 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"