Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2016, 05:00 AM
dan88 dan88 is offline Word Template - Userform launch from QAT giving error "Wrong number of Arguments" Windows 10 Word Template - Userform launch from QAT giving error "Wrong number of Arguments" Office 2016
Novice
Word Template - Userform launch from QAT giving error "Wrong number of Arguments"
 
Join Date: Feb 2016
Posts: 24
dan88 is on a distinguished road
Default



Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>

<tab id="UserForm" label="Userform" >

 <group id="customGroup" label="Custom Group" visible="false" >
 <button id="Btn1" label="UserForm" image="UserForm" onAction="ShowForm"/> 
 <button id="Btn2" label="Hide User Form" image="Hide" onAction="HideForm"/> 
</group>
I then right clicked on this button to show on the QAT.

in a module i have this

Code:
Sub ShowForm(control As IRibbonControl)

iUserForm1.Show vbModeless

End Sub



Sub HideForm(control As IRibbonControl)

iUserForm1.Hide

end sub
dan
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Template - Userform launch from QAT giving error &quot;Wrong number of Arguments&quot; 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 06:38 PM.


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