Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ribbon Problem" "Cannot run the macro or callback function OnLoadImage" Access 2010, Windows 7

820 views
Skip to first unread message

PW

unread,
Mar 11, 2014, 1:01:22 PM3/11/14
to
Hi,

This is the first time I think I've had this problem with any client.
It's with Windows 7 and Access 2010. The first line of the XML is the
only one that contains a reference to OnLoadImage:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
loadImage="OnLoadImage">

Any ideas what is going on? I realize that most here do not use the
ribbon so I guess it's a shot in the dark.

-paulw

Ulrich Möller

unread,
Mar 11, 2014, 1:58:13 PM3/11/14
to
Hi Paul,

for using UI Callbacks you have to code this callback procedures in a
module according to the required signatures:
ex. loadImage: Sub(ImageID as String, Byref image)

(see also
http://msdn.microsoft.com/en-us/library/ee691833%28v=office.14%29.aspx)

and of course they must be error free!

To see error messages related to ui you can set the option "Show add-in
user interface errors" in the custom database settings.

http://social.msdn.microsoft.com/Forums/office/en-US/c3c54c12-6cbd-404a-8709-dba485f82377/access-2010-set-option-show-addin-user-interface-errors-via-vba?forum=accessdev

Ulrich



Albert D. Kallal

unread,
Mar 11, 2014, 2:44:30 PM3/11/14
to
"PW" wrote in message news:i3guh9h34ofjvocsl...@4ax.com...

><customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
>loadImage="OnLoadImage">
>
>Any ideas what is going on? I realize that most here do not use the
>ribbon so I guess it's a shot in the dark.
>
>-paulw

Sounds like the user simply cannot run VBA. The loadimage code is VBA and we
OFTEN see posts about buttons etc. don't work on a new computer.

The result usually something around that the folder is not trusted, or the
security settings are too high.

Do other forms + regular buttons work? (ie: does ANY VBA code work, or JUST
your VBA OnLoadImage code?

Remember, OnLoadImage is a VBA code routine.

This code exists on this computer?
The application compiles ok?
Other buttons + other VBA code routines run fine?

Best regards,

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
PleaseNoS...@msn.com

PW

unread,
Mar 12, 2014, 6:11:27 PM3/12/14
to
I recompiled the code and now everything automagically works! Got me
Albert and Ulrich!

Thanks so much.

-paul
0 new messages