• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formatting a Date Object as "dd mmm yy"

PipBoy808

Member
Hi,
I'm trying to use format to format a date object as "dd mmm yy", i.e. 07 Mar 14. The following keeps returning an 'object required' error:
Code:
Dim MyDate as Date
MyDate=Range("A1").value
Format(MyDate) = "dd mmm yy"
Can anyone help me?
 
Hi, PipBoy808!
What do you mean by "Date Object"? If it's a cell range like A1 then Arturo's suggestion will do the job but for the variable MyDate, not for your referred object. Could you please elaborate or post a sample file?
Regards!
 
Back
Top