Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-17-2016, 09:26 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

Hi Charles,

been fiddling and tweaking and this code works


Code:
Sub ShowForm1(control As IRibbonControl)

iUserForm1.Show vbModeless

End Sub

Sub HideForm1(control As IRibbonControl)

iUserForm1.Hide

End Sub
Now I have a suspicion that it clashed with another userform I had in Normal Template.

The macros for showing the form were the same - as it was in a different template i thought this would be ok

They were both named

Sub ShowForm()

Sub HideForm()

So for the iUserform I renamed it to

Sub ShowForm1()
Sub Hideform1()


it seems to be picking up the user form now.

Let me do some more testing..but i am on the right track i think
thanks
dan
Reply With Quote
 



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:10 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