Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code works but I think could be improved.
Any suggestions would be appreciated! Sub xxCodes() Dim InpType As String Dim tryagain As Long startinput: InpType = UCase(InputBox("Enter the school code")) Select Case InpType Case "XX1" To "XX5" shtInput.Range("State_Code") = InpType shtInput.Range("product") = "" Case Else tryagain = MsgBox("Do you want to try again", vbYesNo) If tryagain = 6 Then GoTo startinput Else End End If End Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cleaning up some code? | Excel Programming | |||
Help Cleaning up Code | Excel Programming | |||
Need help Cleaning up Code | Excel Programming | |||
Help with shortening/cleaning some code please | Excel Programming | |||
VBA Code -- Cleaning Data | Excel Programming |