Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 05-17-2016, 06:02 AM
Charles Kenyon Charles Kenyon is offline Word Template - Userform launch from QAT giving error "Wrong number of Arguments" Windows 8 Word Template - Userform launch from QAT giving error "Wrong number of Arguments" Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Try removing "control as IRibbonControl" from your vba. That does not work on QAT icons but only on Ribbon buttons.

I ran into the obverse problem a while back where it would run from a button on the QAT or by calling the macro directly when the template was loaded as a global but would not run from the ribbon button.

See Wrong number of arguments or invalid property assignment error message in Ribbon customization

By the way, I find using the UI as the principle way to modify the QAT easier than xml. Then I may modify the XML to add tooltips and supertips or change the icon.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Template - Userform launch from QAT giving error "Wrong number of Arguments" Agenda template - userform kennyD Word 4 04-07-2015 01:32 PM
userform to enter multiple lines of data in template callasabra Word VBA 0 06-27-2014 05:29 PM
5941 requested member of collection does not exist Prevents Userform from Showing marksm33 Word VBA 1 02-22-2014 08:56 AM
showing a userform after hiding jillapass Word VBA 0 05-31-2012 06:13 AM
How to get Outlook 2007 userform into template? Royzer Outlook 0 04-13-2012 10:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:21 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