BookmarkSubscribeRSS Feed
Michela_sas
SAS Employee
Hi!

I have been trying to find the way to display the grid of the excel spreadheet outside the area of the report, but so far my attempts didn't succeed.
I am using Excel 2003.

I tried the code excelXP_sample07.sas in the zip file excelxp_samples.zip that you can download from the link Example code for ODS Tagsets & Excel, an Excellent Combination in this page: http://support.sas.com/rnd/base/ods/odsmarkup/.
What I would like to obtain is exactly what it is in the tiff.
What I get is that the grid lines in the report area are light orange.The background out if the report area is light orange as well, without grid.
Does this happen to you as well?

Do you have any suggestion?

Thank you!
Kind regards.
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
Yes, this is the same behavior I get when I run sample07 for ExcelXP. I believe this is because your ODS style is only meant to control the grid lines INSIDE the table created by ODS.

The reason the interior grid lines are light peach and that the rest of the spreadsheet is that same peachy color is because that sample inherits the colors from styles.Statistical -- which defines those colors. If you want to change the color scheme used in sample07, then change the parent= statement to inherit from a different style template (perhaps one like sasweb or printer) in this statement:
[pre]
parent = styles.sasweb;
[/pre]

in the proc template code and the parent template colors will be used. If you're asking whether you can use a style template to restore ALL the interior gridlines in the Excel spreadsheet, I think that the answer is NO. I tried the gridlines option for tagsets.ExcelXP and, as expected, it did not have an effect on what you see in the spreadsheet because it only has an effect on printing (according to the doc).

cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register 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
  • 1 reply
  • 1236 views
  • 0 likes
  • 2 in conversation