C
crew3407
Hi,
I have a userform with a field for first name and a field for last nam
and an OK command button that executes the macro.
I store the last name and first name into variables and i want to b
able to use them in other procedures. for example
sub Ok_Click()
dim first as string
dim last as string
first = First.Text
last = Last.Text
ActiveSheet.Range("A1").Value = first & " " & last
Call upper
End sub
then in a module
sub upper()
ActiveSheet.Range("A2").Value = UCase(last)
end sub
When i call the upper procedure from the ok_click procedure, it doesn'
work. this is probably very dumb, but any help would be appreciated.
thanks
I have a userform with a field for first name and a field for last nam
and an OK command button that executes the macro.
I store the last name and first name into variables and i want to b
able to use them in other procedures. for example
sub Ok_Click()
dim first as string
dim last as string
first = First.Text
last = Last.Text
ActiveSheet.Range("A1").Value = first & " " & last
Call upper
End sub
then in a module
sub upper()
ActiveSheet.Range("A2").Value = UCase(last)
end sub
When i call the upper procedure from the ok_click procedure, it doesn'
work. this is probably very dumb, but any help would be appreciated.
thanks