Solved

VBA: Unable to load picture into image control in UserForm when using Office 2011 for Mac

Posted on 2014-10-04
4
1,093 Views
Last Modified: 2014-10-11
Programming in VBA in MS PowerPoint 2011 for Mac, I am having trouble loading a picture into a UserForm image control.  I have done this successfully hundreds of times in Office 2007 and 2010 for Windows.  

After adding the image control to my UserForm, in the Properties pane, I can usually click on Picture, then browse to select a .jpg file on my computer, after which the word (Bitmap) shows in the Properties pane and the picture appears in the image control.  But when I try to do this on a Mac, it lets me browse, but all .jpg files are greyed out and not selectable.  I have tried cutting and pasting a shortcut to the .jpg directly into the Picture row of the properties pane without success.  

I have also tried loading the picture at runtime using a command such as "me.myImageControl.Picture = LoadPicture (myjpg)."  But this method, which I've used many times in Windows, generates an error and does not appear to be supported in VBA for the Mac.   I tried all this in Word 2011 with the same results, so it's not just PowerPoint.

There must be a way to do this, because the Image control has a Picture property with a browse button.  

Any help would be greatly appreciated!
0
Comment
Question by:Bryce Bassett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Expert Comment

by:James Elliott
ID: 40361930
What happens when you double click the file in the file browser? Does it open into photo software? IE. does your mac associate with the jpg extension?
0
 
LVL 23

Expert Comment

by:JSRWilson
ID: 40363387
It is pretty broken on Macs.

http://www.rondebruin.nl/mac/mac024.htm
0
 

Accepted Solution

by:
Bryce Bassett earned 0 total points
ID: 40365107
With some help from our friends at the Microsoft forum, I discovered that only 24-bit BMP is supported in image controls for Office 2011.  Ron's link says they are not, but it's working for me.  

http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macpowerpoint/vba-unable-to-load-picture-into-image-control-in/2fc232bd-0029-4f06-96f9-cd675a61dae1
0
 

Author Closing Comment

by:Bryce Bassett
ID: 40374615
Found solution elsewhere.  Appreciate the input from both experts, but neither one had the correct answer.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question