Subscribe Bookmark RSS Feed

How we can close an opened excel file using JSL?

ram

Contributor

Joined:

Jun 5, 2017

How we can close an opened  excel file using JSL?

8 REPLIES
ian_jmp

Staff

Joined:

Jun 23, 2011

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

Contributor

Joined:

Jun 5, 2017

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

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

Contributor

Joined:

Jun 5, 2017

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

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

Contributor

Joined:

Jun 5, 2017

we can use function web()
Craige_Hales

Staff

Joined:

Mar 21, 2013

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

Craige
ram

Contributor

Joined:

Jun 5, 2017

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.