Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Peter,
I am unfamiliar with the programming term "blob". However, if your data is stored in an array then data in an array can be transferred directly to an Excel worksheet... '------------------------------- Sub Test() Dim strArray() As String Dim i As Long Dim j As Long ReDim strArray(1 To 10, 1 To 10) For i = 1 To 10 For j = 1 To 10 strArray(i, j) = i * j Next Next Worksheets(1).Range("A1:J10").Value = strArray End Sub '------------------------------ Regards, Jim Cone San Francisco, USA "Peter Hurford" wrote in message oups.com... I have a program which has an xsl file sitting in a blob of memory. I want to use the Excel object model to load up the blob, and to read the rows/columns etc. Is there any way to do this *without* having to save my blob to a file on the hdd first? I would like to keep everything in memory if possible, since once the blob has been processed, it is discarded. TIA, Pete |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, looks like I didn't ask the question very well. blob = binary
large object. Imagine you open a spreadsheet, just running Excel interactively. The file you load up sits on the disk, right? And you just issue a "File | Open" command, select the filename, and you're away... And of course there's nothing to stop you doing exactly the same thing programmatically with vba. Well, in my case I have a program that wants to load up a spreadsheet. Only thing is, the spreadsheet isn't a file on the disk, it is sitting in a chunk of the program's memory. Now, as far as my program is concerned it is just a bunch of binary data, won't make any sense to it (just the same as if you open an xls file in notepad). So, the thing to do is to load this chunk of memory into Excel - then I can use the excel object model to peek at the row/column values. Hence my earlier question. I want to be able to load a spreadsheet from memory rather than from a physical file. Any takers? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Not Enough Memory opening 2nd spreadsheet | Excel Discussion (Misc queries) | |||
Remove content when saving / loading spreadsheet | Excel Worksheet Functions | |||
Loading a linked spreadsheet, Microsoft Visual Basic, error while. | Excel Discussion (Misc queries) | |||
Memory expanding spreadsheet | Excel Programming | |||
Insufficient memory error using shared excel spreadsheet | Excel Programming |