+ Reply to Thread
Results 1 to 4 of 4

Format date returned by sheet code

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Woodbury,CT
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20002) 64-bit
    Posts
    67

    Format date returned by sheet code

    I have the following code in the sheet module which inserts a timestamp when certain values are changed. This gives me the date in m/dd/yyyy format. I want the format to be mm/dd/yy. I have formatted a number in VBA but can't get it right with the date. A solution would be appreciated.


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Format date returned by sheet code

    Maybe replace Date with this?

    Please Login or Register  to view this content.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Woodbury,CT
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20002) 64-bit
    Posts
    67

    Re: Format date returned by sheet code

    Thanks so much!

    And so quickly.

    Works like a charm and it seems so simple.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Format date returned by sheet code

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2017, 02:41 PM
  2. Need vba code to change date&time stamp as date format dd-mmm-yy in A:A rng
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 06:08 AM
  3. [SOLVED] help on vba code to change the error date format as standard format mm/dd/yyyy
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2013, 01:10 AM
  4. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  5. [SOLVED] I need today's date returned as date format in formula
    By CMIConnie in forum Excel General
    Replies: 2
    Last Post: 02-23-2006, 12:45 PM
  6. [SOLVED] Conditional Format on returned value
    By Patrick Simonds in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2005, 12:05 AM
  7. Replies: 2
    Last Post: 04-26-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1