PC Review


Reply
Thread Tools Rate Thread

Copy excel text on a range and paste special to Word

 
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      10th Oct 2007
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 With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      10th Oct 2007
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 With Quote
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      10th Oct 2007
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 With Quote
 
JW
Guest
Posts: n/a
 
      10th Oct 2007
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 With Quote
 
Adam_needs_help
Guest
Posts: n/a
 
      31st Mar 2008
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
> > >
> > >

>
>

 
Reply With Quote
 
Adam_needs_help
Guest
Posts: n/a
 
      31st Mar 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: range copy and paste special within macro Jef Gorbach Microsoft Excel Programming 0 9th Feb 2010 01:39 AM
Re: range copy and paste special within macro Don Guillett Microsoft Excel Programming 0 9th Feb 2010 12:42 AM
Re: missing text when using paste special from word to excel David Biddulph Microsoft Excel Misc 0 21st Dec 2006 11:57 AM
Copy and Paste Special Dynamic Range BigH Microsoft Excel Programming 1 20th Feb 2006 10:16 PM
How do I Copy paste special picture from excel to Word 2003? =?Utf-8?B?SmltUg==?= Microsoft Word Document Management 1 22nd Dec 2005 05:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 AM.