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?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 5507 views
  • 1 like
  • 5 in conversation