Sourcing RefEdit events

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,352
If I want a variable to source events from a userform's textbox, I would use
Code:
 Public myTextBox as msForms.TextBox
.

What class would I use to source events from a RefEdit control?

There is no msForms.RefEdit class.

Thanks.

(Yes, I know they are buggy as all get out. :) )
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
This works with me:
Code:
Sub testRefEdit()

Dim myRefEdit As RefEdit.RefEdit

Set myRefEdit = UserForm1.RefEdit1


End Sub
 
Upvote 0
I get a "User defined type not defined" error.
I guess my Mac (Excel 2011) doesn't have the RefEdit library. (2004 did).
 
Upvote 0
My Windows 8.1 laptop has, i.e. once I create a userform with a RefEdit control, I have RefEdit in my Object Browser, refering to:
C:\Program Files\Microsoft Office 15\Root\Office15\REFEDIT.DLL
 
Upvote 0
Does that source events?
If you put Public WithEvents myRE as RefEdit.RefEdit in a Class Module, does the drop down give you the option for myRE events?
 
Upvote 0
Does that source events?
If you put Public WithEvents myRE as RefEdit.RefEdit in a Class Module, does the drop down give you the option for myRE events?
It does, but first after adding the reference "RefEdit Control", either via Tools - References or by creating a form with a RefEdit control.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top