Macro - info from doc to web

L

Louise

I would like to write a macro that grabs information from
a Word document and sends it to a web page.

For example, if I had a Word form that asked for First
Name and Surname, I would like to be able to get the
information filled in for First Name and Surname and open
up a web window with the address http://www.google.com?
q="'First Name'+'Surname'", so that Google would perform a
search on the name that was entered into the form.

It doesn't have to be done with a form, just this was the
most obvious way I could think of isolating the
information needed.

Can anyone point me towards how I might achieve this, or
to a forum or web site where I can get more help?

Many thanks,

Louise
 
W

Word Heretic

G'day "Louise" <[email protected]>,

Activedocument.FollowHyperlink "http://www.google.com?q=""" _
& FirstName & "%20" & Surname

(thats three double quotes in a row)

should go pretty close.


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Louise reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top