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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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