Hey everyone,
I want to know if there is a way to pass an argument to a VB function in Microsoft Word 2010.
I have a self-made ribbon tab created, and in it is a group with an array of buttons that each opens a document in a series.
The first button would obviously open the first document in the series, the second button would open the second, etc. all the way down to 18 (and growing as time goes on).
As it stands, I have 18 different macros all doing the exact same thing except opening a different document in the series. It would save space (and maintenance time) to have one macro that could open up any one of the documents depending on what button was pressed. But to do that, I need to pass it an argument, a document_number integer (or whatever). Is there a way to do this in MS Word 2010?
I've tried to Google an answer and checked books at the library, but I'm coming up short. I'm not terribly book smart, so the answer could have been staring me in the face, but I misread or misapplied it, or this could be impossible.