I’m working on a financial model in excel. I have this pop-up window whenever I open one of the percentage rates. It asks what year do I won’t to work on. The problem is if I press cancel it puts 0 value instead of just having the values that are there.
Here is the code in visual basic.
What changes should I make?
ElseIf btnEnterYears.Value = True Then
Sheets(“Workbook Map”).Activate
Range(“CURRYR”).Select
ActiveCell.Value= Val(InputBox(“Enter the Base Year.”,”Base Year”))
ActiveCell.Offset(1,0).Select
Range(“A1”).Select
Thanks in advance,
vladimir
Here is the code in visual basic.
What changes should I make?
ElseIf btnEnterYears.Value = True Then
Sheets(“Workbook Map”).Activate
Range(“CURRYR”).Select
ActiveCell.Value= Val(InputBox(“Enter the Base Year.”,”Base Year”))
ActiveCell.Offset(1,0).Select
Range(“A1”).Select
Thanks in advance,
vladimir