+ Reply to Thread
Results 1 to 7 of 7

VBA-How can I add a GIF image to a user form?

  1. #1
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    VBA-How can I add a GIF image to a user form?

    [SOLVED - See last reply. #7]

    I want to include a GIF image in a user form on a Mac. Any help is appreciated.
    Last edited by StuCram; 12-28-2014 at 11:18 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: VBA-How can I add a GIF image to a user form?

    On the Properties list for the userform, scroll down to Picture. Click on the ... on the right hand side. Then navigate to the picture that you want.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: VBA-How can I add a GIF image to a user form?

    Thanks, Trevor.

    I've been trying that with my user form and with label & image items on the form. No luck.
    - The file selection dialog does not allow me to select any files; all are greyed out.
    I'm using Mac OS X 10.8 and Excel 11 for Mac.

    Is there some other property that has to be enabled/changed as well?

    Sad & somewhat frustrated,
    - Stu

  4. #4
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: VBA-How can I add a GIF image to a user form?

    On a related issue, is there a way to paste in an image that has been copied (ex a partial screen capture)?


    And is there an easy way to incorporate an image from another sheet into a new user form. (i.e. 'Picture 383' )

    Just some things I'd like to be able to do but they don't seem to work.

    -Stu

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA-How can I add a GIF image to a user form?

    Hello Stu,

    Unfortunately, VBA on the Mac is pretty limited compared to the PC version. So, I am not sure you do what you want. There are members here who are Mac users that can answer this question better than I can. Hopefully, someone will.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: VBA-How can I add a GIF image to a user form?

    Like Leith, I cannot really give any advice on the Mac's capability.

    With a PC, you can copy an image, select the box next to the Picture and Paste.

  7. #7
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: VBA-How can I add a GIF image to a user form?

    SOLVED (Sort of)

    I discovered this information, courtesy of Ron deBruin's notes: http://www.rondebruin.nl/mac/mac024.htm

    ------------------------------
    He wrote….

    From the Manual :

    In Excel 2011 it is not possible to load a 24 or 32 bit bmp picture manual in a image control on a Userform.
    This is a bug in Excel 2011, convert your picture to a 256-color (8-bit) BMP and it will work.
    Use the Picture property in the properties of the Image control to select the bmp picture you want.

    Note : PictureSizeMode is not fill the image control on the Mac
    You can use the picture property of a label instead, the picture will fill the label then.
    You need to ensure that the label’s aspect ratio matches the picture’s aspect ratio.

    ------------------------------

    So, I changed my images to .bmp & 8-bit format using the 'Graphic Converter' program for Mac.
    Then, clicking the picture attribute of an image item on the user form allowed my to get & show that image.

    Yea!

    This may not give the high-resolution quality some may want but it worked well for my small b/w icon type images.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Entering image in to a worksheet from user form
    By Citrix1966 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2014, 07:37 AM
  2. code won't display a selected image from a file picker, in a user form Any ideas?
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-09-2014, 02:47 PM
  3. Can this be done? (Trying to change an image in a user form)
    By Fenway55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2013, 09:37 PM
  4. VBA for inserting an image into the comment box via user form
    By antonymiller in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2012, 11:39 AM
  5. Image instead of message in User form
    By Tunk Ayauit in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-28-2011, 01:55 PM

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