Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-14-2015, 08:47 AM
inagalaxyfarfarawry inagalaxyfarfarawry is offline Pass Arguments to Function Through Ribbon Windows 8 Pass Arguments to Function Through Ribbon Office 2013
Novice
Pass Arguments to Function Through Ribbon
 
Join Date: Mar 2015
Posts: 8
inagalaxyfarfarawry is on a distinguished road
Exclamation Pass Arguments to Function Through Ribbon

Hey all,

I'm wondering how to pass arguments to a function through a ribbon button.

I have an array of buttons in a self-created ribbon group. I have each button assigned to open a different document in a series. So the first button would obviously open the first document, the second button would open the second, etc. down the list.



The functions to open these docs are identical aside from the file names. So why have 18 functions and growing? Why not save space and programming time just maintaining one, to which I can pass an integer argument, and the same function can manage opening whatever document is requested based on what button is clicked? But how do I pass the function an argument through Word's ribbon?

I'm running Windows 8 with Microsoft Word 2010.

I've done searches on Google and taken books out from the library to learn this, and I've come up with nothing. This leads me to believe either I don't understand what I'm reading when the answer is in front of me (I'm not a book learner) or this kind of thing is impossible.

Thanks, everyone.

Last edited by inagalaxyfarfarawry; 03-14-2015 at 04:43 PM.
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 06:25 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