Hello all, thanks in advance for the help.
I'm trying to capture a date using VBA in a specific format while disregarding the day. For example...
On the spreadsheet, I'll have the date 10/1/2015. I would like to capture that date in a variable as Oct-15. When I call it up later, I want it to still be Oct-15.
I'm running into a peculiar issue... I capture the date using the same code in 2 different lines and then messagebox the value stored and I get the date in 2 different formats. Here is the code...
For SD1 the messagebox displays Oct-15![]()
Please Login or Register to view this content.
For SD2 the messagebox displays 10/15/2015
I only did that because I wasn't getting a consistent result. Can anyone help me with this?
My ultimate goal is to capture and use all of the dates as only month and year. Completely ignoring the day portion of the date.
Thanks!
Bookmarks