Ok...
I have forms, I want them to call a module to get some info that is returned to the form...
But I am not sure how to go about this in VBA.
### USERFORM1 ###
Private Sub UserForm_Initialize()
Call Module1.GetValues
End Sub
Private Sub CommandButton1_Click()
ActiveCell.Value = something.value
End Sub
### MODULE1 ###
Sub GetValues()
something.value = ActiveCell.Value
End Sub
Any help much appreciated.
EDIT:
I should make it clear that there are a number of forms that all need to call on the same module.
So...
### MODULE1 ###
Sub GetValues()
UserForm1.something.Value = ActiveCell.Value
End Sub
wont help.![]()
Bookmarks