LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default XML Importing Problem

I'm attempting to import XML data onto a worksheet in Excel 2003. If I create
the VBA procedure and run it, it works just fine, as long as don't close down
the application. However, if I do close down Excel, re-open it, then attempt
to run my procedure, I get a run-time error: -2147217376 (80041020). The
description says, "A string literal was expected, but no opening quote
character was found."

The code line looks like this (with, of course, a valid address):
ActiveWorkbook.XmlImport URL:= "http://..._getCPdata?year=2009&&" _
, ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$A$1")

I've run out of things to try - anyone have any clue as to what I can do?

 
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
Problem when importing one worksheet into another one linghu84 Excel Discussion (Misc queries) 0 March 20th 08 02:18 AM
Problem importing from access F0zziebear Excel Discussion (Misc queries) 1 October 30th 07 01:03 PM
Importing Data problem Testing Excel Discussion (Misc queries) 4 March 12th 07 12:56 PM
Importing Problem workerboy Excel Worksheet Functions 0 May 15th 06 01:45 PM
Problem importing a txt file Jerry[_17_] Excel Programming 3 February 21st 04 02:33 AM


All times are GMT +1. The time now is 08:18 AM.

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"