Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Pasting Between Excel and Word

I am having a hard time getting formatted text back and forth between excel
and word. I can take the contents of an excel cell and (through the
clipboard) get it into word in the RichText Format (bold, font size..).

What I want to do is to be able to edit the text using word and then when
I'm done, I click Yes/No on a message box that is displayed from Excel. From
there, Excel will copy back (through the clipboard?) the changes that were
made in word, while keeping the RichText format (all styles [bold,
underline..], font faces, font sizes..). I can get the text back into the
cell, but the formatting is not kept.. only the plain text is.

The other problem is that anywhere there was a carriage return (enter key)
or tab (tab key) in word, it is copied back as a special symbol / character
into excel.. can I change the carriage returns into excel carriage returns
and the tabs into 5 spaces?

I can list the code that I am using to accomplish this if needed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Pasting Between Excel and Word

Nevermind. I played around with the code while I waited for an answer and
came up with my own solution. It deals with accessing each character of the
text in word and creating the same formatting for the same character copied
to excel. I have fairly nice commented code for those who wish to see it.

"Alex" wrote:

I am having a hard time getting formatted text back and forth between excel
and word. I can take the contents of an excel cell and (through the
clipboard) get it into word in the RichText Format (bold, font size..).

What I want to do is to be able to edit the text using word and then when
I'm done, I click Yes/No on a message box that is displayed from Excel. From
there, Excel will copy back (through the clipboard?) the changes that were
made in word, while keeping the RichText format (all styles [bold,
underline..], font faces, font sizes..). I can get the text back into the
cell, but the formatting is not kept.. only the plain text is.

The other problem is that anywhere there was a carriage return (enter key)
or tab (tab key) in word, it is copied back as a special symbol / character
into excel.. can I change the carriage returns into excel carriage returns
and the tabs into 5 spaces?

I can list the code that I am using to accomplish this if needed.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting excel into word kmbenn0 Excel Discussion (Misc queries) 1 June 27th 07 09:50 PM
Pasting from Word into Excel Mel Excel Discussion (Misc queries) 1 January 12th 07 06:58 PM
Pasting Excel charts into Word Theresa Charts and Charting in Excel 4 January 27th 06 03:36 AM
copying from word and pasting into excel nims[_4_] Excel Programming 1 August 24th 05 08:24 PM
Pasting a Word Table into Excel Dee Excel Discussion (Misc queries) 1 April 6th 05 01:38 AM


All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"