Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XML creation via a macro

I have a spreadsheet containing results data for a group
of students. I know the name of the xml tags (elements) -
I want to write a macro that will output the data with the
relevant tags to an xml file. Any ideas?

I've got excel 2000 - does the visual basic in this
version allow information to be written out to an external
file (streamwriter?)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default XML creation via a macro

Sarah
You can write text files using the file system object

Example ... goes something like this
Set MyFs = CreateObject("Scripting.FileSystemObject")
Set MyFile = MyFs.CreateTextFile("C:\Sample.Txt", True)
MyFile.WriteLine "heres some text in a file"
MyFile.Close

Hope this helps

"Sarah Dos Santos" wrote:

I have a spreadsheet containing results data for a group
of students. I know the name of the xml tags (elements) -
I want to write a macro that will output the data with the
relevant tags to an xml file. Any ideas?

I've got excel 2000 - does the visual basic in this
version allow information to be written out to an external
file (streamwriter?)

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
Macro creation Ojunera Excel Worksheet Functions 0 October 6th 08 06:28 PM
Macro creation Xavier[_2_] Excel Worksheet Functions 1 May 14th 08 04:43 AM
Creation of macro with an example Jothirmaya Excel Discussion (Misc queries) 2 November 30th 05 12:10 AM
Macro Creation Programming Cells Excel Discussion (Misc queries) 3 July 28th 05 06:07 PM
Macro Creation wiinc1 Excel Programming 4 May 18th 04 01:24 PM


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