BookmarkSubscribe
Choose Language Hide Translation Bar
ram
ram
Community Trekker

How we can close an opened excel file using JSL?

How we can close an opened  excel file using JSL?

0 Kudos
8 REPLIES 8
ian_jmp
Staff

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
ram
Community Trekker

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
0 Kudos
Craige_Hales
Staff (Retired)

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
0 Kudos
ram
ram
Community Trekker

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?
0 Kudos
txnelson
Super User

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
0 Kudos
ram
ram
Community Trekker

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

we can use function web()
0 Kudos
Craige_Hales
Staff (Retired)

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
ram
Community Trekker

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.
0 Kudos