Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open xml in excel without saving to file (via dom or text)

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
I wasn't sure where to post this...
It deals with VBA in a sense that you are working with excel...
Though I am using VB6
But the base of it revolves around XML, so I posted here.


Does anyone know if it is possible to open an XML document in Excel with a method similar to OpenXML, but using text or a dom object instead of a File...?

I am create a DOM on the fly, and want to view it as a table in Excel...

I already have it to where you can view it in an IE window... But you can't edit it... However, you can right click and export to excel...

I DO NOT want to save it to a temporary file...
I know that is an option, but I hate doing that, I think it is a sloppy method...

Currenently, I am looping through the Elements, and writing the Cells, cell by cell... This Method is VERY slow... I prefer to click and have instant results as opposed to having to wait...

If anyone has any ideas, please share...

Such as...
Is there a way to automate IE to export to excel?

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
OK... (duh)
I figured out a way...

You can create a string using either For loops, or XSL containing tab delimited values, with cariage return delimited lines, the insert that into the first cell, and excel will handle the rest...

I might post an example later...

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top