LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default userform question on UserForm_Click()

Morning all,
I've made my second user form, and placed it in my xlam file so I can access
it through my customized ribbon (it's not feasible to place a button on each
workbook due to our internal office file structures).

My first form works good there, and once I made my second one, I did the
same with it, as my first-- placed it in my xlam file, and made the link to
it through my ribbon.

However, the second form doesn't allow me access through the xlam file.
It's throwing a cannot access error due to either "not being in the xlam
file, or macros being disabled." And I know the macros are not disabled.

I've checked the spelling of the form.show for each incidence in the xlam,
and the xml side-- they match. I've checked to make sure that I have the
Control as IRibbonControl in place.


It appears that with each user form it creates a private sub called
UserForm_Click().
I'm guessing at this point that my problem is due to have two
UserForm_Click() macros in two distinctly named/different user forms, and
that this is causing some form of an ambiguity error.

My question is:

Am I supposed to name each subsequent UserForm_Click function a different
name?

Or can Excel differentiate between them on its own? (each one is in its own
userform.)

Thank you.
Best,
SteveB.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform Question Please Help Excel Programming 3 November 15th 07 08:26 PM
userform question Peterke Excel Programming 1 March 26th 06 03:56 PM
UserForm Question Tempy Excel Programming 2 May 19th 05 11:04 AM
Userform question Greg B Excel Discussion (Misc queries) 1 May 13th 05 01:06 PM
UserForm Question bforster1[_25_] Excel Programming 1 November 6th 04 01:21 PM


All times are GMT +1. The time now is 08:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"