Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default paste problem

hello,

i have a huge problem - i want to copy a text from a word file into an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the cell,
but then the text is not formated.

can anybody help me?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default paste problem

If you paste all the text one cell, you will lose the formatting.
If you paste over multiple cells, formatting will remain.
Choose which.

There are ways to format the text within a cell (using .Characters), but you
will have to check each char in Word for bold, colour etc, then apply that
to the character in the cell.

NickHK

wrote in message
oups.com...
hello,

i have a huge problem - i want to copy a text from a word file into an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the cell,
but then the text is not formated.

can anybody help me?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default paste problem

You can get all the text in one box by selecting cell and then pasting in the
F(x) box at top of worksheet. I don't know what format will be retained. I
think the CR/LF will be kept.

" wrote:

hello,

i have a huge problem - i want to copy a text from a word file into an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the cell,
but then the text is not formated.

can anybody help me?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default paste problem

On 29 Mrz., 12:33, "NickHK" wrote:
If you paste all the text one cell, you will lose the formatting.
If you paste over multiple cells, formatting will remain.
Choose which.

There are ways to format the text within a cell (using .Characters), but you
will have to check each char in Word for bold, colour etc, then apply that
to the character in the cell.

NickHK

wrote in message

oups.com...

hello,


i have a huge problem - i want to copy a text from a word file into an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the cell,
but then the text is not formated.


can anybody help me?



okay, this is very complex. could you tell me, how I should do this? I
do not know how to check each character and how I paste this into the
cell.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default paste problem

On 29 Mrz., 14:58, wrote:
On 29 Mrz., 12:33, "NickHK" wrote:



If you paste all the text one cell, you will lose the formatting.
If you paste over multiple cells, formatting will remain.
Choose which.


There are ways to format the text within a cell (using .Characters), but you
will have to check each char in Word for bold, colour etc, then apply that
to the character in the cell.


NickHK


wrote in message


roups.com...


hello,


i have a huge problem - i want to copy a text from a word file into an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the cell,
but then the text is not formated.


can anybody help me?


okay, this is very complex. could you tell me, how I should do this? I
do not know how to check each character and how I paste this into the
cell.


and very important is the numbering and bullets. how can I check this?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default paste problem

Personally, what you are asking is to make Excel work as a word processor.
If you need that functionality use Word.
You can embed a Word document in Excel, InsertObject...

NickHK

wrote in message
oups.com...
On 29 Mrz., 14:58, wrote:
On 29 Mrz., 12:33, "NickHK" wrote:



If you paste all the text one cell, you will lose the formatting.
If you paste over multiple cells, formatting will remain.
Choose which.


There are ways to format the text within a cell (using .Characters),

but you
will have to check each char in Word for bold, colour etc, then apply

that
to the character in the cell.


NickHK


wrote in message


roups.com...


hello,


i have a huge problem - i want to copy a text from a word file into

an
excel sheet in one cell, but when i try to paste the text with vba,
the text is pasted over more than one cell. i have tried to save the
text in a string first and after that i pasted the text into the

cell,
but then the text is not formated.


can anybody help me?


okay, this is very complex. could you tell me, how I should do this? I
do not know how to check each character and how I paste this into the
cell.


and very important is the numbering and bullets. how can I check this?



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
Paste problem horst Excel Discussion (Misc queries) 3 October 3rd 06 05:30 PM
Problem with paste DonT Excel Worksheet Functions 0 March 29th 06 11:56 PM
paste problem Shawn Excel Programming 4 March 9th 06 10:58 PM
Paste All Problem [email protected] Excel Programming 8 January 12th 06 01:22 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM


All times are GMT +1. The time now is 09:17 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"