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
 Extract variables from Excel files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Ju1s

Germany
1 Posts

Posted - 10/14/2014 :  08:24:00 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.1
Operating System: Windows 7

Hi,

how can I extract variables when I import excel files? I want to extract the filename as variable and put it into the comment line of my worksheet.

Cheers,
Julius

greg

USA
1378 Posts

Posted - 10/14/2014 :  12:22:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Excel Import does not have the same Variable Extraction features of ASCII Import, however all imports record File Date, File Name and File Path.
Run this script after import to put the file name into the Comments row of Column "A":
col(A)[C]$ = page.info.system.import.filename$;
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