Share via

Inserting ImageMso

Anonymous
2018-01-29T12:03:35+00:00

Hi

If I want to use a lock in my UI ribbon as an image, I know access has this kind of image how do I complete the referencing in the ribbon here ( imageMso = “Lock”):

<?xml version=“1.0” encoding=“utf-8”?> <!-- This is a comment in the ribbon’s XML -->

<customUI xmlns=“http://schemas.microsoft.com/office/2006/01/customui” onLoad=“onRibbonLoad”>

 <ribbon startFromScratch=“true”>

 <tabs>

Instead of having my ribbon looking blank or without a single image, I can return some of the images already provided in Ms access as part of the application. For example the lock above can represent login menu.

Regards

Chris

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2018-01-31T06:51:02+00:00

    Great! I am glad that worked! If you don't have any more questions, feel free to choose a rating and have a great day!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-01-31T06:03:38+00:00

    Building the ribbon in Access can be rather complicated. Please see here for help on doing it:

    https://support.office.com/en-us/article/custom...

    Well thanks it is done!

    The following were required:

    (1) System table where to put XML script

    (2) Switching on the error messages ( This acts like a compiler)

    (3) Ensuring that scripts have equal spacing

    (4) Ensuring that the cursor sensitivity is observed in the XML script

    (5) The below script is required for ribbon to work

    (6)The call back I think the macro way is much easier than VBA 

    <?xml version=“1.0” encoding=“utf-8”?> <!-- This is a comment in the ribbon’s XML -->

    <customUI xmlns=“http://schemas.microsoft.com/office/2006/01/customui” onLoad=“onRibbonLoad”>

     <ribbon startFromScratch=“true”>

     <tabs>

    Finally the sample button that will have an image for lock will like below:

    <button id="buttonName" imageMso="Lock" onAction="procedureName" label="My Button" showImage="true"/>

    Now I have a ribbon from scratch working , it looks very professional and I think if someone looks at it he/she may not know that they are actually using MS Access

    Regards

    Chris

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-01-29T15:53:54+00:00

    Building the ribbon in Access can be rather complicated. Please see here for help on doing it:

    https://support.office.com/en-us/article/custom...

    Was this answer helpful?

    0 comments No comments