+ Reply to Thread
Results 1 to 7 of 7

how to restrict the date format by using the monthview_control?

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    50

    how to restrict the date format by using the monthview_control?

    I dun know why I enter the date in the monthview_control, it output to text format, not the date format..
    Thus, how can I restrict the date format?

    Thanks,jason


    I have used this code, but it cannot output the date format of 13-31/7/2013, it output to the text format
    Please Login or Register  to view this content.
    Last edited by jasonlewis; 07-31-2013 at 09:55 PM.

  2. #2
    Registered User
    Join Date
    06-29-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: how to restrict the date format by using the monthview_control?

    previous post:
    http://www.excelforum.com/excel-prog...ch-column.html

  3. #3
    Registered User
    Join Date
    06-29-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: how to restrict the date format by using the monthview_control?

    I dun know why I enter the date in the monthview_control, it output to text format, not the date format..
    Thus, how can I restrict the date format?

    Thanks,jason

  4. #4
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: how to restrict the date format by using the monthview_control?

    At output cell, select
    with activecell
    .value = format(.value,"DD mm yyyy")
    end with

  5. #5
    Registered User
    Join Date
    06-29-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: how to restrict the date format by using the monthview_control?

    Re lotuxel,
    I have used your code.
    Please Login or Register  to view this content.
    But it still cannot output the date format of 13-31/7/2013, it output the text format

    I have used this code before, it is quite similar to yours.

    Please Login or Register  to view this content.
    Last edited by jasonlewis; 07-22-2013 at 07:07 AM.

  6. #6
    Registered User
    Join Date
    06-29-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: how to restrict the date format by using the monthview_control?

    I dun know why I enter the date in the monthview_control, it output to text format, not the date format..
    Thus, how can I restrict the date format?

    Thanks,jason

  7. #7
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: how to restrict the date format by using the monthview_control?

    Pls try this..
    Please Login or Register  to view this content.

+ 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: 32
    Last Post: 07-19-2013, 09:47 AM
  2. Replies: 0
    Last Post: 03-05-2013, 07:34 PM
  3. Replies: 9
    Last Post: 12-28-2012, 06:47 AM
  4. Restrict the date format entered in a cell
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2010, 04:43 PM
  5. Restrict date format for UserForm
    By Rob in forum Excel General
    Replies: 2
    Last Post: 12-18-2005, 08:20 PM

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