The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Change the graph name to the worksheet name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

patricks1

Switzerland
Posts

Posted - 11/13/2012 :  07:55:31 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0.0 Pro
Operating System:64bit
Hello
I have a probably stupid question but I can't find a quick solution myself.
What I want to do:
For quality controll I have data sets from a press. This data sets are imported and have a name according to the test sample: e.g. XXX_QA-W_01012012. I do some changes in the dataset and then I draw a graph with a template and design. But the graph is always named: graph1, graph2..... is there a way to name the graph according to the worksheet? E.g. GR_W_01012012

Or do I have to do it by a macro?
Regards and thanks for your help
Patrick

greg

USA
1378 Posts

Posted - 11/13/2012 :  10:39:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Assuming any plots come from the same worksheet, then this should do it:

page.label$=%(1Y,@WS);

With the graph active, copy and paste the above line to the Command Window and press Enter.
Go to Top of Page

patricks1

Switzerland
Posts

Posted - 11/15/2012 :  08:59:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works great, thanks a lot
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000