vamshedhar
New Member
- Joined
- Oct 3, 2013
- Messages
- 8
Hiii,
I am having a small problem. Suppose i have a date given as "31-Dec-2013" in a Cell in Excel Sheet and some numerical value given as 4. Then i would like to get the date 4 days back of the given date. How can i get that using VBA Macros???
Ex:
If given date is "31-Dec-2013" and number is 6.
My result should be: "26-Dec-2013".
Another Ex:
If given date is "3-Nov-2013" and number is 4.
My result should be "31-Oct-2013".
Please Help me.
I am having a small problem. Suppose i have a date given as "31-Dec-2013" in a Cell in Excel Sheet and some numerical value given as 4. Then i would like to get the date 4 days back of the given date. How can i get that using VBA Macros???
Ex:
If given date is "31-Dec-2013" and number is 6.
My result should be: "26-Dec-2013".
Another Ex:
If given date is "3-Nov-2013" and number is 4.
My result should be "31-Oct-2013".
Please Help me.