I have two cells where the user can input two values (Year and Salary):
A1 = Year
A2 = Salary
After the user inputs these two values, I would like for them to be able to press a button - this would then run a macro and insert the Salary (A2) into a column on a different sheet (Sheet 2).
BUT - the row where the Salary value is inserted in Sheet 2 needs to be dependent on the Year value (A1). For example:
(Sheet 1 - User input)
A1 = 2007
A2 = 50000
.
User presses macro button
.
(Sheet 2-macro result)
Column A....................Column B
Year.........................Salary
2005
2006
2007.........................50000
2008
2009
2010
The user can repeat this for every year - essentially using cells A1 and A2 to create the table in Sheet 2. I also need the user to be able to write over any previously inputted value (e.g. if the Salary in 2007 should have actually been 40000, not 50000).
I know this is a fairly more complicated method (ideally, the user would just update the values in Sheet 2) but my boss requested this alternative method.