+ Reply to Thread
Results 1 to 3 of 3

access vba - adding macro shortcut to ribbon

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    access vba - adding macro shortcut to ribbon

    Hello all,
    I've been working with Excel VBA extensively for a couple years now and starting to migrate all of our data to Access and have been learning that environment. My first question is a silly one. I just created a simple routine within a module to close all objects. I'm trying to create a quick key in the ribbon like you can do in Excel, but in the Options, the sub doesn't show up under the Macro dropdown. I'm not sure why, because the sub works when run from the VBA window. I've closed and reopened the db, but I'm obviously missing something here and any help would be appreciated. The code:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,603

    Re: access vba - adding macro shortcut to ribbon

    Hi there,


    I just created a simple routine within a module to close all objects


    As far as I am aware, only routines which are defined in the "Macros" tab can be assigned to buttons in the Ribbon.


    Hope this helps.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Re: access vba - adding macro shortcut to ribbon

    Thanks, Greg. I'll look into that.

+ 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. Replies: 6
    Last Post: 01-05-2020, 07:10 AM
  2. Macro button under quick access ribbon tab tries to open old Excel file
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2019, 08:43 AM
  3. Best way to allow custom ribbon and shortcut mods to be sent with a template
    By webwyzard in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-17-2018, 07:02 AM
  4. [SOLVED] Adding macro button to the Excel ribbon.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2016, 10:08 PM
  5. Adding a macro to the toolbar/ribbon
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2013, 03:48 PM
  6. [SOLVED] Customise shortcut reference letters in Ribbon
    By yettoexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2012, 08:50 PM
  7. Ribbon - Multiple xlam adding into single Ribbon tab
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2011, 03:40 PM

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