+ Reply to Thread
Results 1 to 5 of 5

Copy excel range and paste special picture (metafile) into existing word dot VBA

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Somewhere in Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Copy excel range and paste special picture (metafile) into existing word dot VBA

    I don't know why I cannot find this answer. I know I've found it before. My apolgies.

    I've created a data worksheet Sheet1.
    Sheet2 contains a form that is automatically populated with data when I enter an item code (that I have created). Its a mass of vlookups and index array formulas. It's pretty neat... Anyhow. Once the user enters thier item tag into the excel spreadsheet2 the form is populated with data and ready to save & email. Many people receive these emails and some do not want excel files because they prefer word files... So what I'd like to do is have a button at the bottom of the "form" in sheet2 that will:
    1) Copy cells ("A1:G30")
    2) Open a specific word template "template 123.dot"
    3) Paste special picture (metafile)
    4) Save that word doc - naming the file the text found in 3 of the cells of sheet2 (a1, a2 & a3), into a specific folder ("...desktop\my folder")

    I'm using excel 2003. At the beginning of this whole process I had the button working and only had to figure out how to paste special and then I was going to start work on save as file name. I got off on too many tangents and basically lost everything that worked...
    If anyone can help I'd appreciate it. Cheers,
    Mark
    Last edited by Markcuss; 12-07-2012 at 12:15 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy excel range and paste special picture (metafile) into existing word dot VBA

    Try something like this. Set the location of the template to suit.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 12-05-2012 at 08:39 PM.

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Somewhere in Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Copy excel range and paste special picture (metafile) into existing word dot VBA

    That's just totally awesome! Thank You ThankYou!

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Copy excel range and paste special picture (metafile) into existing word dot VBA

    Based on your last post it seems that you are satisfied with the solution(s) you can mark your thread as "SOLVED".

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy excel range and paste special picture (metafile) into existing word dot VBA

    Quote Originally Posted by Markcuss View Post
    That's just totally awesome! Thank You ThankYou!
    You're welcome.

    Could you mark this thread as Solved and add to my rep (click the asterisk-type icon in the lower left)?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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