Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15064

Select case Need help

$
0
0
Hello
Code:

Private Sub Text1_Change()
Case 40
Text2.Text = 1
Case 41
Text.Text = 2
Text 42
Text2.Text = 3
.
.
.
Case 60
Text2.Text = 20
End Select

I want like this:

Code:

Private Sub Text1_Change()
Select Case Text1.Text
Case 40 To 60
Dim i
For i = 1 To 20
Text2.Text = 1 + i
Next i
End Select
End Sub

but this not working
Any help please

Viewing all articles
Browse latest Browse all 15064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>