- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi I am trying to include some code with in the Data _null_ to conditional format a column SAS exported excel sheet. I need help with this is there any way to loop through the cells and check for a value and color the cell based on the value
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
1. Can you apply conditional formatting to the cells in Excel and then export the data to those cells instead? The conditional formatting will follow.
2. Otherwise, as you export the data, you can check the value and apply the back ground colour. This assumes you're using PUT statements to export your data. If you use PROC export this won't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I wouldn't use DDE - it's very old, awkward to work with and I believe no longer supported by Microsoft anyway. There are some better options detailed here using Proc Print, Proc Report etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@vt123 wrote:
Hi Reeza could you please provide an example of thesecond option that you mentioned. Thanks!
Google can...
Page 5/Section 6 -Formatting of Excel Worksheet Cells
http://www2.sas.com/proceedings/sugi27/p005-27.pdf