When I create a new SS with code such as shown below, Calc creates a SS with 3 sheets. Is there some property value or filter I can use to have Calc create only 1 sheet? Thanks for your help.
The default template should be used here.
Create a spreadsheet document with only one sheet, save it as a template and make it your default template for spreadsheets.
You can also name (give by URL) a template (with only one sheet) explicitly for your LoadComponentFromURL call. (This instead of the as-if URL).
(I did not test this, and I didn't do it for a long time in AOO.)
(Editing: Just tested the second option again. It will create an 'Untitled...' spreadsheet document if called for a .ots file as expected.)
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München