I am new to the forum and a novice excel vba.
Can any one give me a example code to select a range of years(each year in the cells I.E. 2009-2050) by selecting a number of years (i.e. 20 year evaluation) and then use that range in the formula =NPV('Green Forcasting'!G7,F74:AC75)+E74 locaten in one cell . I want the user to be promted by a input box
Set rng =application.inputbox(promt:="Enter number of years for NPV evaluation", Type:=1)
PLEASE HELP I am a little lost as to the direction to take!!