EDN Admin
Well-known member
I have searched high & low, I have tried loads of different ideas and code sampes that I have found via Google (including on this site), but after 2 solid days of getting nowhere, its time to ask ...
I execute a VB.net program, created in VS2010, that opens a Word document, if it exists, and creates it from a Skeleton version if it doesnt exist, that Word Document is then Opened for Editing & I do whatever editing I need to do ... up to this
point, everything works just fine.
Now, is there a way, within that VB.net program of mine, of writing code that will add a new Button to the Word Document, to which I can then assign an executable task ?
The Button can be in the Quick Access Toolbar, at the end of the Home Ribbon or it can be Free Floating on the Document. When I click the Button, it will Save the Document, E:Mail the document to a specified Recipient, Close the Document & do some clean-up
housework. It is the fact that it does this E:Mailing that I dont want to use a VBA Macro in the QAT, because as far as I can see, that Macro Button would be there for Every Word Document, not just these specific Documents, created via my program.
I have custom Buttons on my Outlook program & I am certain I have done this in the past on Excel, but I just cannot see / find how to do this in Word 2007 !!!
View the full article
I execute a VB.net program, created in VS2010, that opens a Word document, if it exists, and creates it from a Skeleton version if it doesnt exist, that Word Document is then Opened for Editing & I do whatever editing I need to do ... up to this
point, everything works just fine.
Now, is there a way, within that VB.net program of mine, of writing code that will add a new Button to the Word Document, to which I can then assign an executable task ?
The Button can be in the Quick Access Toolbar, at the end of the Home Ribbon or it can be Free Floating on the Document. When I click the Button, it will Save the Document, E:Mail the document to a specified Recipient, Close the Document & do some clean-up
housework. It is the fact that it does this E:Mailing that I dont want to use a VBA Macro in the QAT, because as far as I can see, that Macro Button would be there for Every Word Document, not just these specific Documents, created via my program.
I have custom Buttons on my Outlook program & I am certain I have done this in the past on Excel, but I just cannot see / find how to do this in Word 2007 !!!
View the full article