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
 Origin Forum
 How to remove Set Value expressions from the Book
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

VKuznetsov

Germany
5 Posts

Posted - 12/16/2014 :  09:24:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear all,

My OriginPro version is 9.1 (Home use), windows8 (64 bit)

I need to remove the Set Value expressions (i.e. clear F(x) row) from multiple columns in multiple sheets. Manually it takes enormous amount of time, so I would like to make it in a script, but don't know how to access this option.
Set Value expressions contribute to some bags in x-functions, when instead of a value a formula is redirected.

Thanks in advance!
Volodymyr

snowli

USA
1398 Posts

Posted - 12/16/2014 :  10:24:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Volodymyr,

You can ctrl+select F(X) cells and press Delete key to remove corresponding columns' formula.

This will not remove data which is already calculated in the column.

You can highlight those columns and press Delete to remove values.

Thanks, Snow
OriginLab Corp.
Go to Top of Page

VKuznetsov

Germany
5 Posts

Posted - 12/16/2014 :  12:07:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hallo Snow,

thank you for your help. However, it does not help while the arrays of data are distributed over hundreds of worksheets.

Volodymyr
Go to Top of Page

eparent

118 Posts

Posted - 12/16/2014 :  2:10:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following Origin C code will clear the F(x) cell for all columns, in all worksheets, in all worksheet pages.


int DelAllColFormulas()
{
    foreach(WorksheetPage wp in Project.WorksheetPages)
    {
    	foreach(Layer lay in wp.Layers)
    	{
    		Worksheet wks(lay);
			foreach(Column col in wks.Columns)
			{
				col.SetExtendedLabel("", RCLT_FORMULA);
			}
    	}
    }
	return 0;
}
Go to Top of Page

VKuznetsov

Germany
5 Posts

Posted - 12/17/2014 :  04:42:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
eparent, thank you very much.

That is exactly what I was looking for.

Volodymyr
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