Hi:
Generally, when I run into that failure to open a workbook, it is for one of these reasons:
1) I need to update TAGSETS.EXCELXP
2) I have specified some combination of suboptions that generate invalid XML.
So I tried a simplified version of your code (with SASHELP.CLASS) and made a few changes/corrections/simplifications -- but I did not get a Workbook error and the XML file opened correctly in Excel -- I am using Excel 2010, SAS 9.2 and v 1.94 of TAGSETS.EXCELXP -- so you'll have to try the same code and see what you get with your versions of SAS, Excel and TAGSETS.EXCELXP.
(Or you may have to work with Tech Support, as they can test code on older versions of SAS.)
In my version of TAGSETS.EXCELXP, PRINT_FOOTER suboption takes a string and EMBEDDED_FOOTNOTES is only a YES/NO suboption. CONTENTS= with SHEET_INTERVAL='NONE' didn't make sense to me -- SHEET_INTERVAL='NONE' tells ODS to make one big table for ALL your PROC FREQ individual tables -- so essentially, the CONTENTS= will probably point to that one big table.
At any rate, with this simplifed code (I took out the ODS RTF step too), I do get output in Excel -- note that the CONTENTS= sheet is already named Contents and the SHEET_NAME='wombat' causes the separate sheets to be named wombat, wombat 2, wombat 3, etc -- so I don't see a name for sheet_name='contents'.
If you go into Print Preview mode, you will see the difference in placement of the SAS footnote and the text string in PRINT_FOOTERS suboption. Once you have working output, then I would go back and change 1 thing at a time -- change the style or change 1 and only 1 suboption, until you hit the combination that breaks. Then, if you think the combination of options should work, you'll have to open a track with Tech Support to see if they can 1) replicate your issue and 2) whether they agree that it's a bug or whether the XML creation is working as designed or 3) whether you are trying some combination of options that results in invalid XML.
cynthia
[pre]
data work.usethis ;
set sashelp.class;
run;
ODS noproctitle;
ods tagsets.excelxp file='c:\temp\test24Feb.xml' style=sasweb;
ods tagsets.excelxp options(embedded_footnotes='yes' sheet_interval='table'
contents='yes' sheet_name='wombat' doc='Help'
Print_footer='Print Footer: Feb 24, 2011');
title;
footnote 'My Footnote Statement: Feb 24, 2011';
proc freq data = usethis;
tables _all_;
run;
ODS _all_ Close;
ODS Listing;
[/pre]