BookmarkSubscribeRSS Feed
Yennie
Calcite | Level 5
Hey guys,

just wondering if SAS can be used to manipulate the cells on excel spreadsheets?

i would like to freeze a row of panes and also adding colors to the rows. hoping someone can help me out!

many many thanks!
yennie
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest searching the SAS support website for reference papers on the topic.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic/post:
excel freeze pane site:sas.com
Flip
Fluorite | Level 6
Here are a couple of code snippets that should help.


ods tagsets.excelxp options(sheet_name=""
frozen_rowheaders='4' frozen_headers = '5'

compute comme;
if comme = 'Total' then
call define(_ROW_,'STYLE','style={background=#B6DDE8}');
endcomp;
P_Sharma
Calcite | Level 5

FROZEN_HEADERS   -->  Freeze rows from scrolling with the scrollbar

FROZEN_ROWHEADERS -->   Freeze columns from scrolling with the scrollbar

Reeza
Super User

You can use tagsets.excelXP to accomplish most of that, but it depends more on what you're trying to do.

Is this an already created spreadsheet that you need to format or are you looking to control your output more?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 6923 views
  • 1 like
  • 5 in conversation