Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Storing XML In Workbook

This does not work since it will not let me export it again.

It it meta data, but I can't store it in a custom property OR a cell because
the xml string is too long. Is there nowhere in excel with unlimited string
lengths?

"NickHK" wrote in message
...
Ray,
Excel 2002 and up can open/save XML files directly. You could hide it
after
opening.

NickHK

"Ray Price" wrote in message
...
Hi All,

I am trying to store XML data in a workbook hidden from the users. It's
basically meta-data. I was using the custom properties, but it seems

there
is a limit of 256 characters.

Can anyone else suggest a good place for meta data?

Thanks!






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Storing XML In Workbook

Ray,
Not sure I follow.
If you want to work with data the XML file contains, you can open, edit,
save in Excel 2002 and up.

If you mean you need the string of text that makes up the XML file, you can
pull the whole thing into a string:
According to help, a variable length string can contain "approximately 2
billion (2^31) characters".

Dim XMLFile As String

Private Sub CommandButton1_Click()
Dim FileNum As Long

FileNum = FreeFile

Open "C:\YourXMLFile.xml" For Input As #FileNum
XMLFile = Input(LOF(FileNum), #FileNum)
Close #FileNum

Debug.Print XMLFile

End Sub

Or dump the text to a worksheet.
Or read it line by line with LineInput instead

NickHK

"Ray Price" wrote in message
...
This does not work since it will not let me export it again.

It it meta data, but I can't store it in a custom property OR a cell

because
the xml string is too long. Is there nowhere in excel with unlimited

string
lengths?

"NickHK" wrote in message
...
Ray,
Excel 2002 and up can open/save XML files directly. You could hide it
after
opening.

NickHK

"Ray Price" wrote in message
...
Hi All,

I am trying to store XML data in a workbook hidden from the users.

It's
basically meta-data. I was using the custom properties, but it seems

there
is a limit of 256 characters.

Can anyone else suggest a good place for meta data?

Thanks!








  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Storing XML In Workbook

Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

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
Storing all macros in one workbook MissyLovesExcel Excel Programming 4 December 2nd 08 01:28 PM
Match and VLOOKUP from open workbook, storing values in Active wkb Barb Reinhardt Excel Programming 1 February 7th 06 03:03 PM
Storing workbook name jnasr00[_7_] Excel Programming 2 January 18th 06 09:06 AM
Storing Values dinesh Excel Discussion (Misc queries) 0 June 10th 05 06:33 AM
Storing generic objects in workbook via automation Nacho Nachev Excel Programming 0 September 16th 04 03:55 PM


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