+ Reply to Thread
Results 1 to 9 of 9

Transfering Excel Graphs to Word

  1. #1
    Registered User
    Join Date
    12-08-2006
    Posts
    29

    Transfering Excel Graphs to Word

    I have been trying to figure out how to transfer/export whatever graphs that I created in excel into a word document using a macro. So I guess my question is ....is there a macro code to move charts from excel into a word document? help would be deeply appreciated

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Turn on your macro recorder ...
    and proceed with a test, you will get the
    CopyPicture instruction ...

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-08-2006
    Posts
    29
    Unfortunately isn't working maybe I am missing a step. guess there is no way for excel to automatically open a fresh word document and transfer the charts over there huh?

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Excel can open Word ...

    Please Login or Register  to view this content.
    HTH
    Carim

  5. #5
    Registered User
    Join Date
    12-08-2006
    Posts
    29
    Looks great, however for some reason it is not recognizing WDApp.Documents.Open Filename:="C:\Test.doc" any ideas?

    Sub OpenWord()
    Dim WDApp As Object
    Dim WordDoc As Object
    Set WDApp = CreateObject("Word.Application")
    WDApp.Documents.Open Filename:="C:\Test.doc"
    WDApp.WindowState = wdWindowStateMinimize
    End Sub

  6. #6
    Registered User
    Join Date
    12-08-2006
    Posts
    29
    Basically my problem is it opens word fine which is awesome but how to I get it to open a new document as well when it opens. Bascially I'm trying to get a smooth running macro that does all the work i need it to do in excel which it is doing great but now I need it to keep running opening up word and transfering charts to a word document. So now that word is open it's great how do I proceed from here?

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Below is code for excel to open Word and add a new document ...

    Please Login or Register  to view this content.
    HTH
    Carim

  8. #8
    Registered User
    Join Date
    12-08-2006
    Posts
    29
    You are awesome thank you so much.


    One more question if you have time.....Is it possible now that I opened the word document to run word features via that same excel macro?

  9. #9
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Yes ...

    Excel can launch all Word macros you have ...

    HTH
    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1