Results 1 to 6 of 6

Macro to add an embedded object and resize to certain dimensions

Threaded View

  1. #1
    Registered User
    Join Date
    04-08-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Macro to add an embedded object and resize to certain dimensions

    I would like a macro to embed a PDF (not the icon option) and resize it too 6.8" heigth 6.38" width. So far i can just get it to embed and any other macro i add to resize the object will not work. I think it has to do with the object name changing each time a new one is added. I tried to create a macro to change the name to object 1 but that did not work either. All i have so far is the following.

    Sub Add_PDF_Access()
    '
    ' Add_PDF_Access Macro
    '
    
    '
        Range("A15:O47").Select
        ActiveSheet.OLEObjects.Add(ClassType:="AcroExch.pdfxml.1", Link:=False, _
            DisplayAsIcon:=False).Activate
        ActiveWindow.SmallScroll Down:=-24
    End Sub
    Last edited by Eamster; 09-04-2013 at 12:42 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Resize the image according to the cell dimensions.
    By yeshwant_sur in forum Excel General
    Replies: 1
    Last Post: 02-28-2013, 03:05 AM
  2. Insert picture and auto rotate and resize to cell range dimensions
    By jwagman1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 03:49 PM
  3. Embedded PDF Object positioning using Macro
    By timepass111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2011, 03:24 PM
  4. Resize icon representing embedded object using VBA
    By NateofCA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2010, 03:05 AM
  5. Constant display of dimensions of object label.
    By famdamly in forum Excel General
    Replies: 2
    Last Post: 03-25-2007, 10:30 PM

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