In my code I have six different subroutines.
I want to say run #2 , then run #4 , then run #4 , then run#6 etc.
2,4,4,6,1,2,2,3,4,4,5,5,6,6,1,1,2,2 is the sequence
What code should I use?
I want to say run #2 , then run #4 , then run #4 , then run#6 etc.
2,4,4,6,1,2,2,3,4,4,5,5,6,6,1,1,2,2 is the sequence
What code should I use?
Code:
Sub Direction_6()
Dim Direction As String
Dim DirectionName As String
Direction = 2
' How to feed a string of numbers?
' (2,4,4,6,1,2,2,3,4,4,5,5,6,6,1,1,2,2)
'-------------------------------------
If Direction = 1 Then
DirectionName = "North East"
MsgBox (DirectionName)
End If
If Direction = 2 Then
DirectionName = "South East"
MsgBox (DirectionName)
End If
If Direction = 3 Then
DirectionName = "South"
MsgBox (DirectionName)
End If
If Direction = 4 Then
DirectionName = "South West"
MsgBox (DirectionName)
End If
If Direction = 5 Then
DirectionName = "North West"
MsgBox (DirectionName)
End If
If Direction = 6 Then
DirectionName = "North"
MsgBox (DirectionName)
End If
End Sub