Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created April 9, 2014 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statgeek/10322081 to your computer and use it in GitHub Desktop.
Save statgeek/10322081 to your computer and use it in GitHub Desktop.
List all Excel sheets in a workbook
*This code will create a libname reference to an Excel file and list all Sheets in the results window;
libname sample pcfiles path='C:\Temp\Sample_v2.xlsx'; *your statement will depend on your OS/Excel version;
proc contents data=sample._all_;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment