Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default Copy excel text on a range and paste special to Word

How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Copy excel text on a range and paste special to Word

Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial '.Paste
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default Copy excel text on a range and paste special to Word

JW,
thanks, however it paste a table in Word instead of unformatted text as I
want it, any ideas?
Daniel

"JW" wrote:

Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial '.Paste
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Copy excel text on a range and paste special to Word

This "should" work, but for some reason it is still copying the table
structure. I'll keep fooling around with it.
Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial Link:=False, _
DataType:=wdPasteText, Placement:=wdInLine, _
DisplayAsIcon:=False
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
JW,
thanks, however it paste a table in Word instead of unformatted text as I
want it, any ideas?
Daniel

"JW" wrote:

Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial '.Paste
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Copy excel text on a range and paste special to Word

Did this ever get solved, I am looking for the same solution

"JW" wrote:

This "should" work, but for some reason it is still copying the table
structure. I'll keep fooling around with it.
Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial Link:=False, _
DataType:=wdPasteText, Placement:=wdInLine, _
DisplayAsIcon:=False
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
JW,
thanks, however it paste a table in Word instead of unformatted text as I
want it, any ideas?
Daniel

"JW" wrote:

Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial '.Paste
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Copy excel text on a range and paste special to Word

Should have tried the code first, it worked for me! (no table format, just
text)

"JW" wrote:

This "should" work, but for some reason it is still copying the table
structure. I'll keep fooling around with it.
Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial Link:=False, _
DataType:=wdPasteText, Placement:=wdInLine, _
DisplayAsIcon:=False
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
JW,
thanks, however it paste a table in Word instead of unformatted text as I
want it, any ideas?
Daniel

"JW" wrote:

Sub toWord()
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Sheets("Sheet1").Range("A1:C4").Copy
objWord.Documents.Add
objWord.Selection.PasteSpecial '.Paste
Application.CutCopyMode = False
Set objWord = Nothing
End Sub

Daniel wrote:
How can I do it?

Trying to Copy excel text on a range and paste special (text only) to Word

the same but pasting into the notepad

Thanks




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
Copy and paste (special) a series of cells into word raphiel2063 Excel Programming 0 September 10th 07 04:52 PM
Copy range in macro using paste special values Jeff Excel Discussion (Misc queries) 2 August 20th 07 08:12 PM
Copy/Paste Excel Cell Range to Word Bookmark Dan Thorman Excel Programming 3 January 31st 07 02:29 PM
missing text when using paste special from word to excel scottymoore14 Excel Discussion (Misc queries) 2 December 21st 06 05:09 PM
Copy and Paste Special Dynamic Range BigH Excel Programming 1 February 20th 06 10:16 PM


All times are GMT +1. The time now is 09:00 AM.

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"