Macro to Enter Not Current Date but Yesterday's Date in the Word Document
I need help writing a macro (or code for the click event of a button on a form) , running which will enter not the current date but the Yesterday's date.
For example if I click on this button today (assuming that the current date is 06 November 2008) then it will type yesterday's date in the following format
05 November 2008.
I would also appreciate help for the code that will enter the day before Yesterday's date in the currently active word document. So if the current date is 06 November, when run this macro will enter the following:
04 November 2008
Thank you for your help in anticipation