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: 770
Default refedits in a userform control class

Hello,

I'm working on a userform with some RefEdit controls. I found, I believe,
that there's no way to have an accelerator key for a RefEdit, so I thought
I'd create one by creating a refedit control class and defining a KeyDown
event. But now in my class module, I find that neither of the following is
a valid statement:

Public WithEvents formcontrol As RefEdit - it generates a compile error of
"Expected user-defined type, not Project."

Public WithEvents formcontrol As MSForms.RefEdit - MSForms doesn't contain a
RefEdit member

I know that RefEdits are problematic, and it's certainly being reinforced
here, but does anybody have a way to do this? I'm also just interested in
why it says "Not Project" in the compile error message above.

Thanks,

Doug


 
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
Control Sequence from Userform Control Nigel Excel Programming 3 December 29th 04 01:25 PM
Userform control ZMore Excel Programming 1 March 5th 04 11:34 PM
Userform with template class module problem Tom Ogilvy Excel Programming 1 July 18th 03 09:15 PM
Userform with template class module problem Tom Ogilvy Excel Programming 0 July 17th 03 06:38 PM
UserForm Control John Wilson Excel Programming 0 July 16th 03 06:53 PM


All times are GMT +1. The time now is 08:46 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"