× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes, the summary worksheet already exists.  I'm using a "prototype"
worksheet, not building one from scratch.

After I write detail to the previous worksheet, I process this code:
       sheet = hssf_getSheet(book: 'Summary');

      ExSr $CellSummary;

Then,
      BegSr $CellSummary;

      CurRow   = 8;
      CurCell  = 6;
      hssf_formula( row: CurCell: 'SUM('+StartCellCR+':'+EndCellCR+')':
Value);

This is being written in the previous worksheet (with the correct range),
not the current (Summary) worksheet.  At this time I have not qualified the
range with the worksheet name.

Ah, I see my problem.  I don't retrieve a record before I write to the 2nd
worksheet, so my program doesn't know to write to a different worksheet.  I
thought it would be something simple I was overlooking.

Thanks much!
Mark Plank

On 1/23/07, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote:

The way your code is written, it'll only work if the 'Summary' sheet
already exists in the document.  Is that the case?

You say that when you write the new cell, it appears on the wrong sheet.
Can you show us the code that writes the new cell?  Since that's where the
problem is happening?

I'd also run the code in debug -- make sure that the number that's
returned by hssf_getSheet(book: 'Summary') is the same number that you
pass when you retrieve/add the row object that's being written to the
wrong sheet.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.