×
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.
I'm using rpg to loop thru a small file and write rows/cells into an existing worksheet.
Before running the rpg program, the worksheet cells are not protected, after running the rpg program and populating the rows, the cells are protected. If you go to the row right after the inserted rows, the cells are not protected so it seems any cell that gets written is having cell protection turned on?
Any insight would be greatly appreciated.
My program pretty much follows the UPDDEMO program in the POI36 library provided by Scott Klement.
Template of how my cells get populated below.
Tfah,
John B
//-
// Load an existing spreadsheet into memory
//-
book = ss_open(gIfsDir + '/' + gFilename);
if (book = *null);
Complain('Unable to open workbook!');
endif;
//-
// Set the worksheet to update
//-
sheet = ss_getSheet(book: gSheetname);
if (sheet = *null);
Complain('No Sheet1 sheet in workbook!');
endif;
//-
// Get the row
//-
row = SSSheet_getRow(sheet: gRow);
if (row = *null);
row = SSSheet_createRow(sheet: gRow);
endif;
<snip>
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.