Re: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Joel <Joel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 Jan 2009 06:27:00 -0800
Your share point is a webpage the you are accessing using a web browser. The
URL is the address in the webpage where your data is located. One method of
accessing the data is to launch a web browser from excel VBA. Here is very
simple example. You need to understand html objects and data to program
using this method. I can help, but it is difficult without getting direct
access to the html file. I have lots of example and can help. I'm not sure
your experience you ae in programming. It requires more than a novice
understanding of programming.
Sub GetZipCodes()
ZIPCODE = InputBox("Enter 5 digit zipcode : ")
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "http://zip4.usps.com/zip4/citytown_zip.jsp"
'get web page
IE.Navigate2 URL
Do While IE.readyState <> 4
DoEvents
Loop
Do While IE.busy = True
DoEvents
Loop
Set Form = IE.document.getElementsByTagname("Form")
Set zip5 = IE.document.getElementById("zip5")
zip5.Value = ZIPCODE
Set ZipCodebutton = Form(0).onsubmit
Form(0).Submit
Do While IE.busy = True
DoEvents
Loop
Set Table = IE.document.getElementsByTagname("Table")
Location = Table(0).Rows(2).innertext
IE.Quit
MsgBox ("Zip code = " & ZIPCODE & " City/State = " & Location)
End Sub
"Laurent" wrote:
Hi,.
thank for your answer !
post my URL ? you mean from sharepoint ? unfortunatly it s intranet, you can
not reach it from outside.
What I m looking for is quite easy : I m want the code for a macro in excel
2007 to pick up on value in a sharepoint list.
Just give me an exemple of a macro doing this that I can understand how it
works. It would be really nice !
I do not want to import all the list or build some connection but I want to
have the possibility in a macro to chose when and what has to be read on
sharepoint without leaving Excel 2007.
tahnks very much for your help !!!
Best regards
"Don Guillett" wrote:
Perhaps you can post your url and tell what you want.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
- References:
- pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Laurent
- RE: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Joel
- RE: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Laurent
- RE: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Joel
- RE: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Laurent
- Re: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Don Guillett
- Re: pick up a value in MOSS 2007 with a macro inExcel 2007
- From: Laurent
- pick up a value in MOSS 2007 with a macro inExcel 2007
- Prev by Date: Re: Cell contents in formula bar
- Next by Date: Re: determining the largest value in a sequence of text strings
- Previous by thread: Re: pick up a value in MOSS 2007 with a macro inExcel 2007
- Next by thread: UK Map
- Index(es):
Relevant Pages
|