Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Loretta Carpenter   on Oct 26 In MS Office Category.

  
Question Answered By: Michele Grant   on Oct 26

mvCtrl is an object variable. To assign a control  to an object variable, you
must use the Set statement:

Dim mvCtrl As Control
Set mvCtrl = Me.ActiveControl
MsgBox mvCtrl.Value

When you are done with an object variable, you should free memory used by it
with another Set command:

Set mvCtrl = Nothing

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Userform Control referencing Or get search suggestion and latest updates.


Tagged: