BookmarkSubscribeRSS Feed
BETO
Fluorite | Level 6

HI,

what I'm trying to do is export a table to excel with a couple of excel comment boxes in row1  ... I need to auto insert a comment box into the file..

thanks for your assistance

4 REPLIES 4
Reeza
Super User

I think it might be in NOTE command.

BETO
Fluorite | Level 6

HI Reeza,

i have this but for some reason it's not  finding the file

data _null_;

set class;

file ddedata;

put Name '09'x Sex '09'x Age '09'x Height '09'x Weight; 

run;

   data test1;

length name $10 sex $1;

input name & sex age height weight;

cards;

Alfred M 14 69.0 112.5

Mary Anne F 12 66.5 94.0

run;

/* WRITE BODY */

filename ddedata dde"excel|[C:\Users\U770846\Desktop\GC.xls]||sheet1!r3c1:r4c5";

data _null_;

set test1;

file ddedata;

put name sex age height weight;

put 'objWorksheet.Cells(1, 1).AddComment "Test comment."';

run;


BETO
Fluorite | Level 6

I found what I needed using tags

Reeza
Super User

Can you post it back to the thread, I'm curious.

Also useful if someone else has the same question.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3059 views
  • 3 likes
  • 2 in conversation