T O P I C R E V I E W |
a.abc.b35 |
Posted - 05/04/2011 : 01:49:45 AM Origin Ver. and Service Release (Select Help-->About Origin): Origin 8 SR0 Operating System: WIn XP ........... I think this is elementary but am not able to get the correct functions to get this task done. Can anyone help me in creating, say 10 worksheets, inside a particular workbook ? Say, I call the workbook (or worksheetpage) as wp. Can anyone tell me how to create 10 worksheets inside wp, with name as wks_1,wks_2,....,wks_10.
AB |
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 05/04/2011 : 3:41:47 PM void add_10(string strWkBk) { WorksheetPage wp(strWkBk); if( wp ) { for(int idx = 1 ; idx <= 10 ; idx++) { string str; str.Format("wks_%u", idx); wp.AddLayer(str); } } }
Call with add_10(Book1) for example.
I guess the key is understanding that a Worksheet is just a Layer within a Workbook. |
|
|