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

Hello all. I keep getting a Runtime Error 13 Type mismatch for th
following code:


code:
--------------------------------------------------------------------------------

Public Sub SendToWord()
Dim CAP As Range
Dim myWord As Word.Application
Set CAP = Sheets("InitialAssessments").UsedRange
CAP.Copy
Set myWord = New Word.Application
With myWord
.Visible = True
.Activate
myWord.Documents.Open _
Filename:="C:\Documents and Settings\chrisv\Desktop\HBC2\Repor
Document\HBC Reporting Document.doc"
With Selection
myWord.ActiveDocument.Bookmarks("InitialAssessment s").Select
.Item("InitialAssessments").Range.Text = CAP.PasteSpecia
<-----PROBLEM WITH THIS LINE
End With
End With
End Sub

--------------------------------------------------------------------------------




I am trying to copy a used range in Excel and copy it at the 'Initia
Assessments' Bookmark in Word.

Suggestions??

And as always, thanks for the hel

--
Message posted from http://www.ExcelForum.com

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
Hyperlink to Word / HTLM bookmark in Excel 2007 Zement Excel Discussion (Misc queries) 3 April 4th 23 02:21 PM
hyperlinking from an Excel cell to a bookmark in Word kipahulu Excel Discussion (Misc queries) 1 July 16th 09 09:41 PM
linking to a bookmark in a Word doc ibvalentine Excel Discussion (Misc queries) 0 April 25th 08 12:27 AM
hyperlink from Excel to a Word bookmark Bertie Excel Discussion (Misc queries) 2 May 16th 06 07:51 PM
to pull in metadata from another system (like bookmark in word) Gail Excel Discussion (Misc queries) 0 January 23rd 06 05:27 PM


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