mawjcullen
New Member
- Joined
- Oct 27, 2004
- Messages
- 12
As stated above my problem is that the code as recommended by a previous post on this subject doesn't work because I am creating the Word document and so do not have any bookmarks to use as a range. What can I do? The problem is the PasteAndFormat line. I get a command Not Available comment back
Dim objApp As Word.Application
Dim Chart1 As Variant
Set objApp = CreateObject("Word.Application")
objApp.Options.SavePropertiesPrompt = False
With objApp
.Visible = True
.Documents.Add
Set Chart1 = ActiveSheet.ChartObjects(1)
Chart1.Copy
.Selection.PasteAndFormat Type:=13
End With
objApp.Quit
Dim objApp As Word.Application
Dim Chart1 As Variant
Set objApp = CreateObject("Word.Application")
objApp.Options.SavePropertiesPrompt = False
With objApp
.Visible = True
.Documents.Add
Set Chart1 = ActiveSheet.ChartObjects(1)
Chart1.Copy
.Selection.PasteAndFormat Type:=13
End With
objApp.Quit