I have to calculate "Costo" (Cost) by Select Case, but whe I run the macro it just put 0 in Cost not the numbers I put in the macro. Something is missing and I don't know what. Cost (P5-P50) Tipo de Pase (O5-O50)
Sub Ejercicio1()
Dim Estacionamiento As String
Dim Casillero As String
Dim TipoDePase As String
Dim Costo As Double
Dim contador As Double
contador = 5
Range("P5").Select
Do While contador <= 50
Select Case TipoDePase
Case "Normal":
Costo = 95200
Case "Lounge":
Costo = 280000
Case "Lounge Premium":
Costo = 392000
End Select
ActiveCell.Offset(1, 0).Select
contador = contador + 1
Loop
End Sub
Sub Ejercicio1()
Dim Estacionamiento As String
Dim Casillero As String
Dim TipoDePase As String
Dim Costo As Double
Dim contador As Double
contador = 5
Range("P5").Select
Do While contador <= 50
Select Case TipoDePase
Case "Normal":
Costo = 95200
Case "Lounge":
Costo = 280000
Case "Lounge Premium":
Costo = 392000
End Select
ActiveCell.Offset(1, 0).Select
contador = contador + 1
Loop
End Sub