Consulting

Results 1 to 6 of 6

Thread: Solved: What is this EXTRA bit of code - date format)

  1. #1

    Question Solved: What is this EXTRA bit of code - date format)

    Hi All,

    [vba]Selection.NumberFormat = "[$-C09]d mmmm yyyy;@"[/vba]
    I have recorded & used the above code to format a date in VB, which it does.

    It seems to work without this part......
    [vba][$-C09][/vba] .....just wondering what that part is or does.


    Just Currious, Everything Works OK.

  2. #2
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location

    We are what we repeatedly do. Excellence, therefore, is not an act but a habit.
    Aristotle

  3. #3

    Thumbs up

    so it's the locale
    (thx for the link, btw)

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,057
    Location
    Hi GG, Just to clarify... "C09"as in Calendar Gregorian (Middle East French) or have I read this incorrectly??
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    when I recorded the macro (to get the code), I changed the locale
    from English (US)
    to English (Australian).


    this is taken from gg's link, and is 5 items from bottom of web page....

    Hexadecimal
    value
    LanguageLCID
    0C09English (Australian)3081

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,057
    Location
    Thanks
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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