Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Marco for pasting in word

Hi,
I want to use a macro to copy many selected range from excel to word.
The ranges have different sizes and I paste as bitmap for a easy
correc pasting.
Questions:
how to set the page orientation "landscape"?
how to insert page break in .doc document?
how to insert many ranges? (with the attached code, only rnValue2 is
visible)


I start with this code:
------------------------------------------------------------------------
Sub copia()
Dim wApp As Object
Dim wDoc As Object
Dim rnValue As Range

Set rnValue1 = Range("utile!A2:K59")
Set rnValue2 = Range("utile!A60:K94")
Set wApp = CreateObject("Word.Application")

With wApp.Documents.Add()
rnValue1.Copy
..Content.PasteSpecial Link:=False, DataType:=wdPasteBitmap,
Placement:= _
wdFloatOverText, DisplayAsIcon:=False
rnValue2.Copy
..Content.PasteSpecial Link:=False, DataType:=wdPasteBitmap,
Placement:= _
wdFloatOverText, DisplayAsIcon:=False
Application.CutCopyMode = False
..SaveAs Filename:=ThisWorkbook.Path & "\riassunto.doc"
..Close
End With
wApp.Quit
End Sub
------------------------------------------------------------------------

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 into word Naz Excel Discussion (Misc queries) 0 June 6th 07 02:10 PM
Pasting from Word Table Eric Excel Discussion (Misc queries) 3 March 22nd 07 06:53 PM
Pasting from Word into Excel Mel Excel Discussion (Misc queries) 1 January 12th 07 06:58 PM
Pasting into Word w/o lines??? Michael Raphael Charts and Charting in Excel 1 August 16th 06 07:32 PM
pasting into Word... Ivano Excel Programming 0 April 12th 06 02:52 AM


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