- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Trying to open an xlsm excel sheet
I am trying to use an open command to open an excel file. I keep getting the error that it can not be opened in the excel wizard. Should I change the worksheet settings?
dt = Open(
DXrelease,
Worksheets( "SDMA" ),
Use for all sheets( 1 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 4 ),
Data Starts on Row( 5 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 0 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
)
);
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
I found the issue! I had the file path name wrong. Nothing wrong with the actual code. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
Hi,
I wonder if the fact that your Excel file is a Macro-Enable file (xlsm extension) causes the problem. Have you tried to save the data file as a standard (i.e., xlsx) file?
If the problem persists, you may want to share the problematic file with us.
Best,
TS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
I haven't but I will try that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
I found the issue! I had the file path name wrong. Nothing wrong with the actual code. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
Also which JMP version are you using? JMP might have had some changes made how different excel files can be handled with version 16 Get Excel Worksheets XLSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Trying to open an xlsm excel sheet
I'm using 16.2