Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Format date

  1. #1
    Board Regular
    Join Date
    Mar 2014
    Location
    cyprus
    Posts
    602
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Format date

    Hi i would like to change the format of month to date in col. "C" so to convert it, e.g. 10/2018 to 31/10/2018 using VBA.

    Thank u all in advance
    Last edited by Panoos64; Nov 9th, 2018 at 08:36 AM.

  2. #2
    Board Regular Trevor G's Avatar
    Join Date
    Jul 2008
    Location
    Tamworth, Staffordshire
    Posts
    6,314
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format date

    Try this code:

    Sub Macro4()
    Columns("C:C").NumberFormat = "m/d/yyyy"
    End Sub
    Trevor
    I am on a learning curve of life, I know a little but like to share what I have learnt with others.
    I am using Microsoft Office 2003 to 2016
    Please remember everyone here is a volunteer, so if you have had a reply to your thread be courteous and acknowledge this.

  3. #3
    Board Regular
    Join Date
    Mar 2014
    Location
    cyprus
    Posts
    602
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format date

    Thank you Trevor for your support. It works!

  4. #4
    Board Regular Trevor G's Avatar
    Join Date
    Jul 2008
    Location
    Tamworth, Staffordshire
    Posts
    6,314
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format date

    Happy to help and thank you for letting me know.
    Trevor
    I am on a learning curve of life, I know a little but like to share what I have learnt with others.
    I am using Microsoft Office 2003 to 2016
    Please remember everyone here is a volunteer, so if you have had a reply to your thread be courteous and acknowledge this.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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