BookmarkSubscribeSubscribe to RSS Feed
ram

Community Trekker

Joined:

Jun 5, 2017

How we can close an opened excel file using JSL?

How we can close an opened  excel file using JSL?

8 REPLIES
ian_jmp

Staff

Joined:

Jun 23, 2011

Re: How we can close an opened excel file using JSL?

NamesDefaultToHere(1);
dt = Open("$SAMPLE_IMPORT_DATA/Fill Weights.xlsx");
Wait(3);
Close(dt, NoSave);
ram

Community Trekker

Joined:

Jun 5, 2017

Re: How we can close an opened excel file using JSL?

when you open .xlsx, is it .jmp or .xlsx ? i like to close a .xlsx file not
.jmp
Craige_Hales

Staff

Joined:

Mar 21, 2013

Re: How we can close an opened excel file using JSL?

You should see a JMP data table. If you are seeing excel opening a spreadsheet, something else is going on. If you open the .xlsx manually from JMP's file->open dialog, you'll land in JMP's import wizard which will help you do the first import. You can use the Source script in the JMP data table to repeat the process without going through the wizard.

Craige
ram

Community Trekker

Joined:

Jun 5, 2017

Re: How we can close an opened excel file using JSL?

hi ,
i do not want to open as jmp data table. how can i open as excel and close that excel using jsl?
txnelson

Super User

Joined:

Jun 22, 2012

Re: How we can close an opened excel file using JSL?

When you Open() an Excel file in JMP, it is converted to a JMP file.  What is the reason you want the files to remain in Excel format?  The structure of a JMP data table is required for the various JMP Platforms to work with them.

Jim
ram

Community Trekker

Joined:

Jun 5, 2017

Re: How we can close an opened excel file using JSL?

we can use function web()
Craige_Hales

Staff

Joined:

Mar 21, 2013

Re: How we can close an opened excel file using JSL?

web() launches excel as a separate program, independent of JMP. JMP does not have a way to close the excel spread sheet.

Craige
ram

Community Trekker

Joined:

Jun 5, 2017

Re: How we can close an opened excel file using JSL?

I was looking for both functiuons. i found web() to open excel file by a clickable link.
i guess no function to close the excel file using JSL.
Thanks all for your contribution.