BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
lycheelove
Calcite | Level 5

Hi I'm trying to copy and paste my code from SAS 9's Enhanced Editor to Word. I'm trying to retain the color-coded format but when I paste onto Word, all my formatting gets lost. Same thing with Wordpad. Any suggestions for this? Thank you so much 😀.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

What options in WORD do you see when select "Paste special"? Formatted Text (RTF) should keep the formatting. If your Word has been configured to use a different default, such as "Unformatted Text" or "Unformatted Unicode Text" it would have that behavior you describe but Paste Special should allow selecting the "Formatted Text (RTF)" option.

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Works fine for me with WORD.  

Highlight lines. Press Ctrl-C.  Move to WORD, Press Ctrl-V.

Tom_0-1654705086575.png

 

ballardw
Super User

What options in WORD do you see when select "Paste special"? Formatted Text (RTF) should keep the formatting. If your Word has been configured to use a different default, such as "Unformatted Text" or "Unformatted Unicode Text" it would have that behavior you describe but Paste Special should allow selecting the "Formatted Text (RTF)" option.

lycheelove
Calcite | Level 5

Thank you - that didn't really work. I think it's because I'm working off a remote server so there're some restrictions. I found a work around (paste onto OnDemand for Academics and then paste from there to Word).

Thank you again for all your help.😀

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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