Consulting

Results 1 to 4 of 4

Thread: EXCEL VBA: how to use vba fuction to translate the day format

  1. #1

    Wink EXCEL VBA: how to use vba fuction to translate the day format

    Hi all,
    I have a question which is "How to use vba fuction to translate the day format from "dd/mm/yyyy" to yyyy/dd/mm" ?

    Can anyone help me to solve the problem? Thank You!

  2. #2
    VBAX Contributor
    Joined
    Jul 2004
    Location
    Gurgaon, India
    Posts
    148
    Location
    format(Date, "yyyy/dd/mm")
    ________________
    Kris

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Or just set the numberformat

    cell.NumberFormat = "yyyy/dd/mm"
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Or just set the numberformat

    cell.NumberFormat = "yyyy/dd/mm"
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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