- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-08-2010 04:44 AM
(10314 views)
Hi All
I was just wondering if there is a function or DDE query I can run to find the sheet names within Excel? E.G. Book1.xls contains Sheet1 Sheet2 Sheet3.
I have a client that sends me weekly updates but always calls the sheet name something different. I have asked him not to but he continues to change it.
Thanks
I was just wondering if there is a function or DDE query I can run to find the sheet names within Excel? E.G. Book1.xls contains Sheet1 Sheet2 Sheet3.
I have a client that sends me weekly updates but always calls the sheet name something different. I have asked him not to but he continues to change it.
Thanks
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try this
libname xls excel 'c:\test.xls';
data t;
set sashelp.vtable;
where libname = 'XLS';
run;
GL
libname xls excel 'c:\test.xls';
data t;
set sashelp.vtable;
where libname = 'XLS';
run;
GL
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Mr. Data _null_ provided very good solution a year ago:
http://support.sas.com/forums/thread.jspa?messageID=23307嬋
Oleg.
Mr. Data _null_ provided very good solution a year ago:
http://support.sas.com/forums/thread.jspa?messageID=23307嬋
Oleg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you both - these are both great ways to do it! Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Neil
just to dig a little into the dictionary tables, you may find the engine column of dictionary.members useful when working with more than one workbook (or libname) .... Try code:[pre] proc sql ;
create table sheets as select * from dictionary.members where engine= 'EXCEL' ;
quit ;[/pre]
just to dig a little into the dictionary tables, you may find the engine column of dictionary.members useful when working with more than one workbook (or libname) .... Try code:[pre] proc sql ;
create table sheets as select * from dictionary.members where engine= 'EXCEL' ;
quit ;[/pre]