Solved

Format(Date)

Posted on 1998-10-02
2
137 Views
Last Modified: 2010-04-30
variable = Format(Date, mmm). for example gives you Sep
how do I receive the previous month Aug. I have tried:
variable = Format(Date, mmm)- 1, but I get a Type Mismatch
error.
Thank You
0
Comment
Question by:robhas
2 Comments
 
LVL 4

Accepted Solution

by:
mcix earned 30 total points
ID: 1437786
variable = Format$(DateAdd("M", -1, Now), "mmm")
0
 

Author Comment

by:robhas
ID: 1437787
Worked Great
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question