+ Reply to Thread
Results 1 to 3 of 3

Code to insert current date (but NOT current time)

  1. #1
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Code to insert current date (but NOT current time)

    Friends,

    I am creating a macro that will insert the current date on a spreadsheet. I used this code:
    Please Login or Register  to view this content.
    The problem is that I only want the date ... not the time showing at all. This is important because the spreadsheet is going to be saved as a CSV and imported into another program. Importing the time would be a problem.

    Can you help?

    Thank you so much!
    Mike
    Learn to Serve Others. Kindness is far better than the alternative.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Code to insert current date (but NOT current time)

    Hi Mike,

    use this :

    Please Login or Register  to view this content.
    You could also still add in (before the end sub) :
    Please Login or Register  to view this content.
    and play around with that to get the format you want.

    Please click the * below if this helps
    Last edited by JasperD; 09-12-2013 at 04:15 PM.
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Re: Code to insert current date (but NOT current time)

    Thank you very much!!

+ 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: 5
    Last Post: 10-06-2014, 05:20 PM
  2. Replies: 1
    Last Post: 10-17-2012, 02:33 AM
  3. [SOLVED] add current time (hh:mm:ss) as well as current date (dd:mm:yyyy) into the code
    By papasideris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2012, 02:29 PM
  4. [SOLVED] Any quick key to insert current Date and Time?
    By Philip in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 12:20 PM
  5. [SOLVED] Can I automatically enter the current date or current time into a
    By Ben in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-19-2005, 11:05 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