Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
morrowkd
 
Posts: n/a
Default exporting excel worksheet to word


Hi JulieD,

Can you give me some tips or code to write an excel macro that will
actually perform that paste special-paste link command. Here is a
macro I wrote that simply copy's the specified cells and paste's them
in a word document, but I am unfamiliar with VBA and I cannot figure
out the commands to do a paste special--paste link rather then a
general paste.

Sub Macro4()
Set myWord = CreateObject("Word.Basic")
myWord.FileNew
myWord.ViewZoomWholePage
Worksheets("sheet1").Range("PCTR").CopyPicture Appearance:=xlScreen,
Format:=xlPicture
myWord.EditPastespecial DataType:="PICT"
Application.CutCopyMode = False
myWord.InsertPara
myWord.FileSaveAs Name:="PCTR.DOC"
myWord.FileClose
myWord.FileExit
Set myWord = Nothing
' Macro4 Macro
' Macro recorded 5/12/2005 by s390264
End Sub

thanks
danielle

JulieD Wrote:



--
morrowkd
[/i][/color]


--
morrowkd
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
exporting excel worksheet to word morrowkd Links and Linking in Excel 1 May 11th 05 11:23 PM
Merging data from an excel worksheet into an excel template pkasler Excel Worksheet Functions 1 March 13th 05 04:36 AM
Installed Word XP only, then applied Office SP3, then Excel - need 2 re-update? Maged Excel Discussion (Misc queries) 0 March 5th 05 10:37 PM
moving excel in word back to excel Briton Excel Discussion (Misc queries) 0 January 21st 05 10:43 PM
Convert Word Table to Excel Spreadsheet [email protected] Excel Discussion (Misc queries) 1 January 18th 05 10:57 PM


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