.....allow many months to go by between each occasion you use VBA.
You'd get so rusty that you'd forget how to do the simplest things.
I've a simple textbox collects a variable between 1-18. All I want to do is use that variable to point to a workbook sheet bearing a generic text name before that number.
So in other words, my code would look something like this ??????
Or am I way off ....?????
Private Sub CommandButton1_Click()
Dim myvar As Integer
myvar = TextBox1.Value
Sheets("name" + myvar).Select
UserForm1.Hide
End Sub
You'd get so rusty that you'd forget how to do the simplest things.
I've a simple textbox collects a variable between 1-18. All I want to do is use that variable to point to a workbook sheet bearing a generic text name before that number.
So in other words, my code would look something like this ??????
Or am I way off ....?????
Private Sub CommandButton1_Click()
Dim myvar As Integer
myvar = TextBox1.Value
Sheets("name" + myvar).Select
UserForm1.Hide
End Sub