wordperfectconvert
Technical User
I have a spreadsheet where the user enters the date of an event. Cell B2 is the date of the event. For example, if B2 is 1/1/07, I need to have cell C2 enter $431.00. If B2 is 1/1/08, I need to have cell C2 enter $461.00.
I literally am struggling with everything. I started with Private Sub Worksheet_SelectionChange(ByVal Target As Range)and am trying to figure out how to set my target (is it Target.Address ("B2")). I understand I am supposed to change the dates to numbers, but can't find the code. Below is the English language version.
If cell B2 is between dates 7/1/06 and 7/1/07, then enter $431, ELSE If cell B2 is between dates 7/1/07 and 7/1/08, then enter $461. I am going to have dates covering 1990 to 2009, so I have to use VBA instead of an excel formula. Thank you in advance for the help.
I literally am struggling with everything. I started with Private Sub Worksheet_SelectionChange(ByVal Target As Range)and am trying to figure out how to set my target (is it Target.Address ("B2")). I understand I am supposed to change the dates to numbers, but can't find the code. Below is the English language version.
If cell B2 is between dates 7/1/06 and 7/1/07, then enter $431, ELSE If cell B2 is between dates 7/1/07 and 7/1/08, then enter $461. I am going to have dates covering 1990 to 2009, so I have to use VBA instead of an excel formula. Thank you in advance for the help.