Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-14-2015, 05:04 PM
gmaxey gmaxey is offline Pass Arguments to Function Through Ribbon Windows 7 32bit Pass Arguments to Function Through Ribbon Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

There was nothing above my post when I replied earlier. Just the thread title.

I'm assuming you have a common button OnAction macro defined in your RibbonX and a Button OnAction macro something like the following in your VBA project:

Code:
Sub ButtonOnAction(control As IRibbonControl)
Dim pCall As String
Select Case control.ID
  Case "Btn1", "Btn2", "Btn3", "Btn4" '... etc.
     modMain.DoSomethingWithThisButton control.Tag 'Use the control tag property to define a variable argument.
  Case Else
    'Do Nothing
End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
macro, microsoft word 2010, ribbon



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass Arguments to Function Through Ribbon How to Pass Arguments in a Formula? tinfanide Excel Programming 2 10-13-2014 06:10 AM
Pass Arguments to Function Through Ribbon How to Pass Document to this Sub ilcaa72 Word VBA 1 01-28-2014 03:04 PM
How to import the customized ribbon to Word without overwriting the existing Ribbon? SharonSh Word VBA 0 09-26-2013 11:47 PM
How to pass parameters to a .msg file? HereNow Outlook 0 11-05-2012 10:38 AM
Excel 2010 Ribbon look like 2007's Ribbon esotop Excel 0 03-22-2011 07:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft