+ Reply to Thread
Results 1 to 4 of 4

Macro to Copy from Excel to Word

  1. #1
    Registered User
    Join Date
    11-27-2008
    Location
    Bristol
    Posts
    13

    Macro to Copy from Excel to Word

    I need some help please!

    I am trying to add an 'export to word' function within my excel worksheet using a macro. See below.
    Please Login or Register  to view this content.
    Works great, except that that the resulting end picture pasted into Word is reduced in size such that it makes it hard to view (unless you increase to 200%+) and certainly not workable for printing. What I therefore want the macro to do instead is copy the first part of the range to a page 1 of the Word doc and the second range of cells to a page 2. I then want the macro to resize the page set up (top/bottom & left/right borders) and increase the scale of the pictures.

    Here's the detail:

    - Copy cell range (D2:Q34) from excel file and paste to new doc in Word
    - Resize page set up so Top & Bottom = 0.5, and Left & Right = 1.5
    - Increase scale of picture 1 from 63% to 77% Height & Width
    - Move to end of doc, add a page break and then a blank row (as if return was pressed)
    - Copy cell range (D35:Q69) from the excel file and paste onto PAGE 2 of the Word doc below the blank row
    - Increase scale of picture 2 from 63% to 77% Height & Width

    I'm sure this must be possible to do within the Excel macro by adding further code to that above but am struggling to advance this.

    Can anyone help?

    Many thanks in advance, beam
    Last edited by Leith Ross; 11-27-2008 at 01:36 PM. Reason: Addded Code Tags

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    Beam_me_up Scotty,

    This may help:
    http://www.exceltip.com/st/Copy_work...Excel/481.html


    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    11-27-2008
    Location
    Bristol
    Posts
    13
    Thanks Stan, I'm good but not that good I'm afraid . It's changing the borders of the word doc, inserting a blank row and resizing of the pic objects I need help with. Can you give me a clue of VB code to do this please? Cheers!
    Last edited by Beam_me_up; 11-27-2008 at 02:58 PM.

  4. #4
    Registered User
    Join Date
    11-27-2008
    Location
    Bristol
    Posts
    13
    sorted it !

+ 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