BookmarkSubscribeRSS Feed
tsolomon11
Calcite | Level 5

HI, I am trying to open an excel with different worksheets and select the second row as the column names. I tried using the code below that Brian Corcoran posted but despite changing the Has Column Headers and Data Starts on Row, the first in the excel file is always selected as the coumn names? Any ideas on why this is not working.

 

 

Open("C:\Users\tsolomo\Desktop\bactera.xlsx",

Worksheets( "D1D UPW Supply" ),

Use for all sheets( 1 ),

Concatenate Worksheets( 0 ),

Create Concatenation Column( 0 ),

1,

Has Column Headers( 0 ),

Number of Rows in Headers( 1 ),

Headers Start on Row( 2 ),

Data Starts on Row( 3 ),

Data Starts on Column( 1 ),

Data Ends on Row( 30 ),

Data Ends on Column( 10 ),

Replicated Spanned Rows( 1 ),

Suppress Hidden Rows( 1 ),

Suppress Hidden Columns( 1 ),

Treat as Hierarchy( 0 )

);

2 REPLIES 2
PGStats
Opal | Level 21

This looks like JSL... Try posting to the JMP User Community.

PG
tsolomon11
Calcite | Level 5

thanks, will do

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 2 replies
  • 1034 views
  • 1 like
  • 2 in conversation