BookmarkSubscribeRSS Feed
Vid
Calcite | Level 5 Vid
Calcite | Level 5

Hi,

Is there a way to create Read Only Access excel files using DDE technique?   I am creating excel files in sas using excel xp tagsets and converting them to native excel using DDE but do not want anybody to make any changes in it by mistake?

Thanks

Vidya

2 REPLIES 2
Reeza
Super User

From the DDE docs:

SAVE.AS(document_text, type_num, prot_pwd, backup, write_res_pwd, read_only_rec)

Read_only_recis a logical value corresponding to the Read-Only Recommended check box in the Save Options dialog box.

If read_only_rec is TRUE, Microsoft Excel saves the workbook as a read-only recommended workbook; if FALSE, Microsoft Excel saves the workbook normally; if omitted, Microsoft Excel uses the current settings.

    When you open a workbook that was saved as read-only recommended, Microsoft Excel displays a message recommending that you open the workbook as read-only.

Vid
Calcite | Level 5 Vid
Calcite | Level 5


Thanks Reeza!!  That worked.

Vidya.

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!

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.

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
  • 2 replies
  • 590 views
  • 1 like
  • 2 in conversation