I have a number of VB.forms that all contain the same Private Sub. I want/need to replace all these subs with one single sub.
It seems to me I have two solutions :
a. Turn one of these Private Subs into a Public Sub (which seems to work fine)
b. Move the private sub to a separate VB.Class (in which case, a Me.Close in the Private sub statement causes an error)
Is there a way to change the Me.close statement so that the original Private Sub can be used in a separate VB.Class ?
It seems to me I have two solutions :
a. Turn one of these Private Subs into a Public Sub (which seems to work fine)
b. Move the private sub to a separate VB.Class (in which case, a Me.Close in the Private sub statement causes an error)
Is there a way to change the Me.close statement so that the original Private Sub can be used in a separate VB.Class ?