Hi

Thank you Paul and RolfJ

The file I want to save in binary format already contains 4 ararys of
variable size (these are to store: the file version info, settings and user
preferences, main data, and other data)

The excel formatting I and values I am trying to save is just a part of the
above said file. I dont want to create two files (one myformat.svi and
another, excel.xls) but to include it in the same file.

Furthermore I want the file to be as small as possible because the data to
be save can be accounting transactions data which can run into any length...

If I am able to convert different combinations (there wont be many) of cell
formatting into a number (preferably between 0 - 255 so that i can store
that as a Byte) It would make my file smaller than excel's own format.

What I mean by different combinations is:

a Byte with value 0 may mean [ Font color=*Black*, Backgroung color=white,
Bold=*False*, Font ="Arial"] and

a Byte with value 1 may mean [ Font color=*Red*, Backgroung color=white,
Bold=*True* Font ="Arial"] and

and so on untill its 255 and I think more combinations wont be required.


Another important reason to do that is to avoid recalculation when the user
makes only a small change which affects only few values (or formatting) in
the final report..

I dont know if applying the cell formatting to each cell one after another
takes same [or more :( ! ] amount of time as a total recalculation!!

It will be nice if you advice me if I can do it in some other way. I heard
"*.DLL" and *.XLL" files are faster? will these help?

Thank You
Hemant Hegde


On 10/11/2009, RolfJ <r...@pacificsound.us> wrote:
>
>
> Please explain why you don't save the worksheet resulting from your
> calculations in the intrinsic Excel format (i.e. as an Excel
> workbook).
>
> On Nov 8, 12:20 pm, Hemant Hegde <hemantbales...@gmail.com> wrote:
> > Hi
> >
> > After a lot of coding and lengthy calculations (takes up to 2 minutes) I
> get
> > a sheet (actually a report) with lot of numbers and different cell
> > formatting.
> >
> > Now I need to store the cell values together with cell formatting in a
> > binary file to avoid repeated lengthy calculations.
> >
> > The only option I able to think is to store all the formatting values one
> > after another in the binary file eg. For cell's background colour, I will
> > have to store the value of cells(1,1).interior.colorindex as a number and
> > write it to the binary file. While opening the binary file, it has to
> read
> > it and apply it back to the cell.
> >
> > Any better Idea?
> >
> > Im sorry if I failed to explain correctly what i want to do!
> > Can I get all the formatting of a cell as a single number or a string by
> any
> > means?
> >
> > Professional programmers help me please
> >
> > --
> > Hemant Hegde
> >
>


-- 
Hemant Hegde

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to