View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bythsx-Addagio[_2_] Bythsx-Addagio[_2_] is offline
external usenet poster
 
Posts: 27
Default Date: End of last month as YYMM

Hello,
I am looking for a good way to capture the YYMM of the last month as a
string.
My macro runs a monthly process and I would like it to automatically save to
monthly directory labeled by the year and month. If I were to run it today,
24-May-2007 I would like the result to be YYMM = "0704".

Could someone suggest a way to do this in VBA without relying on computing
on a worksheet?

Thanks in advance,