Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default Importing XML through web-based query

I'm trying to write a macro to automatically gain access to information via
web services. I recorded the following macro and typed in the
username/password manually when importing:

Sub WebServices()
ActiveWorkbook.XmlImport URL:="http://webpage/products.xml", ImportMap _
:=Nothing, Overwrite:=True, Destination:=Range("$A$1")
End Sub

The problem is that I don't know how to put in the username/password into
the macro so that when I try to run it via the macro (without having the
password already saved), it just gives me a big fat error (Run-time 1004: XML
list is bound to a different XML map).

There will be multiple users for this application so I don't want to have to
go through the hastle of puting in the username/password manually before they
start up the macro. If it's not possible, no worries, they can handle it.
But if it's possible, I'd sure appreciate it. Thanks for any help!

--
-SA
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
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Importing / OLE DB Query nkippen[_3_] Excel Programming 0 October 21st 04 03:29 PM
Importing / OLE DB Query nkippen Excel Programming 4 October 21st 04 09:47 AM
Importing / OLE DB Query nkippen[_2_] Excel Programming 1 October 20th 04 01:47 PM
Importing Text File Based on Query ExcelMonkey[_145_] Excel Programming 2 June 11th 04 01:20 PM


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