BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I've retained leading zeroes for Excel output via ODS HTML using

... htmlstyle='vnd.ms-excel.numberformat:@' ...

Is there a similar TAGATTR attribute for ExcelXP?
4 REPLIES 4
Eric_SAS
SAS Employee
you can use

tagattr="format: @"

When you do that, the type will also be changed from number, to string.

This only works in the latest versions of the tagset. The newest version will be available later today. it's worth waiting for because it fixes a couple of bugs reported by Jack earlier this week.
deleted_user
Not applicable
Thanks, Eric. I'll look for that update.
deleted_user
Not applicable
> The new tagset is now on the web...
>
> http://support.sas.com/rnd/base/topics/odsmarkup/exclt
> gs.tpl

This URL doesn't work - it goes to a 404 page( SAS page that says "We're sorry. We couldn't find your document"). You need to add a final l to the link to get there (the Forum software is truncating it - I tried to post a corrected link and Preview showed that mine was truncated, too).

Steve Raimi

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2741 views
  • 0 likes
  • 2 in conversation