Results 1 to 4 of 4

import Word document as several objects, one page at a time

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    import Word document as several objects, one page at a time

    Hello all,
    I am looking for a solution to the problem of page breaks in OLEObjects. how about a macro that lets the user browse to pick the Word document, then imports it one page at a time as separate word.document12 objects for each page, and places them one below the other in Excel starting at the current cell?
    If anyone knows how to modify the code below to open a dialogue to browse and select a file, then add only the first page of the chosen document that might be a great start:
    Sub ImportWordDoc()
        ActiveSheet.OLEObjects.Add(filename:= _
            "C:\Documents and Settings\Desktop\file name here.docx" _
            , Link:=False, DisplayAsIcon:=False).Select
    End Sub
    Thanks in advance,

    Willardio
    Last edited by Willardio; 01-04-2013 at 07:01 PM.

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