Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Update Website from Excel ??!!??

Yup, it's one of those "strange" queries.

I have a workbook that can create a report for numerous clients.
One Client wants to be able to see the up-to-date report whenever he
wants.
So that he cannot see any other client's reports i was hoping that
someone had some bright ideas of how to do this.

I was thinking that i could
* create a workbook that will produce a report for this client (this is
doable)
*each morning when i log in, it will automatically produce a report
with the most up-to-date data. (maybe startup? not sure though).
*After the report is produced another macro will save the report to a
webpage or folder (like yahoo briefcase) overwriting anything else that
has the same name. (is this wishful thinking?)

Any help or advice appreciated.

thanks
George

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Update Website from Excel ??!!??

Incase anyone else can use it...
(Alot of the code was taken from an example by Jow Was (I think))

This is for the uk site and you need to change userid and password to
whatever yours are.

Sub myWebOpenPW()
'Open site if it requires a PassWord Model!
Dim IE As Object

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

'Go to this Web Page!
IE.navigate
"http://login.yahoo.com/config/login?new=1&.intl=uk&.done=http%3a//uk.f1.pg.briefcase.yahoo.com/&.src=bc&referer=&partner="


'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!

SendKeys "userID", True
SendKeys "{TAB}", True
SendKeys "password", True
SendKeys "{ENTER}", True


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

'Add the file to briefcase
IE.navigate "http://uk.f2.up.briefcase.yahoo.com/edit/--your
ID--/nbc_do_bub_action?.action=upload&.src=bc"

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

x = 0
While x < 9
SendKeys "{TAB}", True
x = x + 1
Wend
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "{TAB}", True
SendKeys "{TAB}", True

SendKeys "{ENTER}", True

'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


x = 0
While x < 9
SendKeys "{TAB}", True
x = x + 1
Wend

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

SendKeys "c:\test.xls"
SendKeys "{ENTER}"

'Give the document time to upload
Application.Wait (Now + TimeValue("0:00:05"))
'MsgBox "Done"
IE.Visible = True

'sign out
IE.navigate
"http://www.yahoo.com/_ylh=X3oDMTB2MXQ5MTU3BF9TAzI3MTYxNDkEdGVzdAMwBHRtc GwDaW5kZXgtaWU-/r/l5"


IE.Quit

End Sub


Hope this helps someone.
George

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
Update info from website to worksheet automatically, w/o opening s Juliana Excel Discussion (Misc queries) 0 March 5th 08 02:54 PM
Website to update values Noob Jedi Excel Discussion (Misc queries) 0 August 29th 07 03:28 PM
Website to update values Noob Jedi Excel Discussion (Misc queries) 0 August 29th 07 03:24 PM
Display data retrieved from website and have it update periodicall [email protected] Excel Worksheet Functions 1 July 27th 07 04:53 PM
What can cause update function to point to website? Leonard Excel Discussion (Misc queries) 0 September 21st 05 07:08 PM


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