Advertisement

05.10.2008 at 05:13AM PDT, ID: 23391545
[x]
Attachment Details

Excel VBA Merging range as picture to specific location

Asked by murbro in Microsoft Excel Spreadsheet Software

Hi. I received the following code in a previous question and wanted to know how to paste
the Excel range to a specific location within Word. Do I use a Bookmark?

Sub CopyFromExcelToWord()
     
    Dim wdApp As Object
    Dim wd As Object
     
    On Error Resume Next
    Set wdApp = GetObject(, "Word.Application")
    If Err.Number <> 0 Then
        Set wdApp = CreateObject("Word.Application")
    End If
    On Error GoTo 0
         Set wd = wdApp.Documents.Open("C:\test.doc")
    wdApp.Visible = True    
    Range("A1:J30").CopyPicture xlScreen, xlPicture
    wd.Range.Paste
     
End SubStart Free Trial
 
 
[+][-]05.10.2008 at 05:33AM PDT, ID: 21538761

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 05:45AM PDT, ID: 21538815

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Sign Up Now!
Solution Provided By: tru3533
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.10.2008 at 01:11PM PDT, ID: 21540357

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628