Hello everyone. I am currently coding a project which requires information from a prior month. What I have is a message box which prompts the user to enter the date: dd-mmm-YYYY format. That value is then stored as a variable deontoed fDate. I would like to create a sub macro which takes fDate and"subtracts a month" and create a file which will be named after that, for instance if the current month is 30-jan-2010, then a file will be created and named 31-dec-2009. My line of thought was "fdate -1", but that returns an error. Please see the code below, specificaly Sub CreateFiles (). Any help is greatly appreciated.
Please Login or Register to view this content.
Bookmarks