Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
surjpanj
Posted - 12/04/2020 : 09:38:18 AM Origin Ver. and Service Release (Select Help-->About Origin): 2016 Operating System: Windows
Hi,
I have five worksheets each with different name. From data in each worksheet I then plot ten different graphs (together I get 50 graphs named Grpah1....Graph50). I want to write a script that would rename each graph with the name of the worksheet and add a number to each sequential graph (e.g. G_Book01_01, G_Book01_02, G_Book01_03... then for the next ten graphs: G_Book02_01, G_Book02_02, G_Book02_03..., etc. for the rest of worksheets and graphs). Any idea how to do this?
Thanks, Matt
2 L A T E S T R E P L I E S (Newest First)
surjpanj
Posted - 12/05/2020 : 10:28:46 AM Hi James,
it works but it gives me too much data in the names. The graph names are composed as [workbook short name][workbook long name][!column][column long name]. I would like simpler and shorter naming: [workbook long name][two digit number] (e.g. Book1_01, Book1_02, Book1_03... Book2_01, Book2_02, Book2_03...)
Thanks, Matt
YimingChen
Posted - 12/04/2020 : 2:47:41 PM Can you try the LT script:
int numPlot = 1;
doc -e LP{
range -w rG = %C;
string strRange$ = %(rG);
page.LONGName$ = strRange$;
}