Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Word Macro .. help needed ..  (Read 3942 times)

0 Members and 1 Guest are viewing this topic.

arul20

  • Guest
Word Macro .. help needed ..
« on: May 31, 2005, 08:13:07 PM »
Hello,

How can I include a table from a website (it is dynamic) in a Word doc using macro?

I use Visual Basic. I know that 'IncludePicture' can be used for dynamically getting pictures from websites, but this is a table and i'm lost ...

Usage: When the macro is run, a report will be created with the latest table.

Thanks

arul20

  • Guest
Re: Word Macro .. help needed ..
« Reply #1 on: June 04, 2005, 10:49:10 PM »
somebody (in some other forum), suggested that I use Excel's
web query feature to extract the necessary tables.

(Data -> get external Data -> New Web Query)

It seemed like it might just work .. BUT! You need a username and password to enter the page.



How can I make this work?

I have seen examples somewhere when somebody inserted the password along with the web address .. How can this be done?


Also .. IF I do manage to extract the table to Excel, I would still need to transport the table to my Word Document .. I am quite new to macro coding .. so ANY help would be appreciated ..


Thank you. (If you reply)