+ Reply to Thread
Results 1 to 4 of 4

Insert picture macro doesn't work in Excel 2007

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    arizona
    MS-Off Ver
    Excel 2003
    Posts
    2

    Insert picture macro doesn't work in Excel 2007

    Help

    I just upgraded to Excel 2007 and my macro from Excel 2003 for inserting a picture doesn't work correctly in 2007. I have a command button that states insert picture and when you click it, it will let you insert a picture into the cell and hide the command button. In 2007 it will let you insert the picture, but it isn't centered and expands into other cells and the command button is still visible. The picture appears to be the correct size it just doesn't center itself in the cell and the command button is still visible. Below is the code, Help me please!


    Please Login or Register  to view this content.
    Last edited by bren21171; 03-09-2009 at 09:49 PM. Reason: Clarified Title

  2. #2
    Forum Contributor
    Join Date
    12-11-2004
    MS-Off Ver
    2007
    Posts
    137

    Re: Insert picture macro doesn't work in Excel 2007

    Hi,

    you may adapt like this :

    Please Login or Register  to view this content.

    Regards
    michel

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Insert picture macro doesn't work in Excel 2007

    I am, and will be for a while, away from my "information about excel" files but check out the "GetOpenFilename". If I remember right, this is not supported in 2007. I have seen several workarounds for this on the forums.
    Sorry I can't help anymore with this but I am sure you'll find it.

    Regards.
    John

    Edit. I did not read properly I guess. You said that the GetOpenFilename works. Sorry about that.
    Last edited by jolivanes; 03-05-2009 at 07:10 PM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Insert picture macro doesn't work in Excel 2007

    See Andy Pope's explanation here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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