Hi, I have no idea about VBA and I would be extremely thankful to anyone who could help me out with this, something I hv been breaking my head over.
Example: 1) Cell G2 has: 25-Jan-2012
2) M2 has: 9500 N2 has: 2000 O2 has:01-July-2010
3) M3: 11500 N3: 2000 O3: 01-July-2011
4) M4: 13500 N4: 2000 O4: 01-July-2012
Now, I really need a code that checks the date in G2 (which is 25-Jan-2012 in this case) and insert a row at the right place ie, between between 01-July-2011 & 01-July-2012 with the 'O' cell (inserted) autofilled with the same date as G2 so that the O column appears as a sequence - 01-July-2011 then 25-Jan-2012 (the G2 cell date) then 01-July-2012.
I am not sure if this too much to ask but it would be even more awesome if M cell inserted by vba code, comes with a formula adding the previous cells (M3+N3) with N cell inserted remaining the same as N3.
I have no idea if all this is even possible but hey the world is full of geniuses and I might even get lucky encountering one here :D
Any help greatly appreciated. Thank you.
Example: 1) Cell G2 has: 25-Jan-2012
2) M2 has: 9500 N2 has: 2000 O2 has:01-July-2010
3) M3: 11500 N3: 2000 O3: 01-July-2011
4) M4: 13500 N4: 2000 O4: 01-July-2012
Now, I really need a code that checks the date in G2 (which is 25-Jan-2012 in this case) and insert a row at the right place ie, between between 01-July-2011 & 01-July-2012 with the 'O' cell (inserted) autofilled with the same date as G2 so that the O column appears as a sequence - 01-July-2011 then 25-Jan-2012 (the G2 cell date) then 01-July-2012.
I am not sure if this too much to ask but it would be even more awesome if M cell inserted by vba code, comes with a formula adding the previous cells (M3+N3) with N cell inserted remaining the same as N3.
I have no idea if all this is even possible but hey the world is full of geniuses and I might even get lucky encountering one here :D
Any help greatly appreciated. Thank you.