OleMiss2010
Member
Within a much large VBA, I have a question that asks how many transactions are being reviewed and then goes on to ask for the Transaction Number for each transaction being reviewed. I cannot get this to work correctly. Are there any glaring errors in my coding?
[pre]
[/pre]
[pre]
Code:
Dim NumsTrans as Integer
Dim TranNumi as Integer
NumsTrans = Application.InputBox("How many transactions will be reviewed?")
If NumsTrans <> 0 Then
ThisWorkbook.Names.Add Name:="TranNumbers", RefersToR1C1:= _
"=R15C16:R15C" & NumsTrans + 15
End If
For TranNumi = 1 To NumsTrans
TranNumi = TranNumi + 0
TranNumi = Range("P15"+TranNumi).Value
Next TranNumi