Thanks in advance for any help you can give me!
I am trying to do a loop which will look at the date entry in one cell then enter a string into another according to the value (eg if a1 is between 1/7/03 and 31/7/03 then d1 = "July NY"...The code I am using (it's messy I know but I am a novice at VBA) is below...I have 2000 rows that I need to loop thru and the date range will be from now to 2 years in the future - I think if I continued using this code it will take a long time to process.
If ActiveCell.Value >= 1 / 7 / 2 And ActiveCell.Value <= 31 / 7 / 2 Then
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "Jul TY"
ActiveCell.Offset(1, -3).Select
Thanks if you can help me!!!
I am trying to do a loop which will look at the date entry in one cell then enter a string into another according to the value (eg if a1 is between 1/7/03 and 31/7/03 then d1 = "July NY"...The code I am using (it's messy I know but I am a novice at VBA) is below...I have 2000 rows that I need to loop thru and the date range will be from now to 2 years in the future - I think if I continued using this code it will take a long time to process.
If ActiveCell.Value >= 1 / 7 / 2 And ActiveCell.Value <= 31 / 7 / 2 Then
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "Jul TY"
ActiveCell.Offset(1, -3).Select
Thanks if you can help me!!!