+ Reply to Thread
Results 1 to 3 of 3

Date / Day format

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Date / Day format

    Hi,

    In a worksheet it is easy to display the weekday of todays day - for example:

    Todays day in Turkish is: "Sali" and in German: "Dienstag".

    This can be achieved formatting the cell as: [$-041F] dddd or [$- 0407] dddd.

    What I want is to present these two day formats in VBA in a MsgBox command WITHOUT any Sheet cell help.

    I have tried:
    Please Login or Register  to view this content.
    and:
    Please Login or Register  to view this content.
    but what I get, in both cases, is the same local weekday and not the Turkish or German one.

    Is there a solution to my question.

    Thanks in advance, Elm

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Date / Day format

    Hi Elm

    You could use the WorksheetFunction class:

    Please Login or Register  to view this content.
    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Date / Day format

    Thank you.

    I feel a little stupid because the usage of the WorkSheetFunction is not new to me.

    As a matter of fact I usually omit the WorksheetFunction and use a shorter command:
    Please Login or Register  to view this content.
    From your reply I understand that this is the only way to produce such a formatted day - or...!?

    Thanks again Elm
    Last edited by ElmerS; 01-27-2009 at 12:04 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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