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
 reload file in worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bnebenda

Germany
4 Posts

Posted - 04/02/2003 :  11:37:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a way to reload the file into the current worksheet after the file has changed, without the need to select the file again with the fileselector?

Mike Buess

USA
3037 Posts

Posted - 04/02/2003 :  12:30:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If the file name and path don't already show up in the worksheet label then open ASCII options, click Other Options and select the "Rename worksheet to data file name" option. Then save the template. Now you can use the worksheet label to save the file name and path and reopen the file with a macro like this...

def reload {
%A=page.label$;
open -w %A;
};

1. Enter the above macro definition in the script window. (It will be active for the remainder of your Origin session.)
2. Import a file as usual.
3. With the import worksheet active, enter "reload" in the script window to import the same file.

Mike Buess
Origin WebRing Member
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