cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
BTeague
Level II

Trying to open an xlsm excel sheet

Error message.png

 

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( "-" )
	)
);
1 ACCEPTED SOLUTION

Accepted Solutions
BTeague
Level II

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!

View solution in original post

5 REPLIES 5
Thierry_S
Super User

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

Thierry R. Sornasse
BTeague
Level II

Re: Trying to open an xlsm excel sheet

I haven't but I will try that.

BTeague
Level II

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!

jthi
Super User

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 

-Jarmo
BTeague
Level II

Re: Trying to open an xlsm excel sheet

I'm using 16.2