+ Reply to Thread
Results 1 to 6 of 6

Format the Default Date

Hybrid View

  1. #1
    Michael Singmin
    Guest

    Format the Default Date

    Hello group,

    Ctrl ; inserts the current date into a cell
    It is always formatted as the first choice
    for dates viz. *14-03-01

    Can I change the default format to 14-Mar-01 whenever
    I use Ctrl ;

    Thanks,

    Michael Singmin


  2. #2
    Tom Ogilvy
    Guest

    Re: Format the Default Date

    I suspect it uses the short date format. This can be redefined for windows
    in the regional settings in the control panel.

    --
    Regards,
    Tom Ogilvy

    "Michael Singmin" <msing@mweb.co.za> wrote in message
    news:5mu181hlm96ukfh331v8gngiu6eehvk6e3@4ax.com...
    > Hello group,
    >
    > Ctrl ; inserts the current date into a cell
    > It is always formatted as the first choice
    > for dates viz. *14-03-01
    >
    > Can I change the default format to 14-Mar-01 whenever
    > I use Ctrl ;
    >
    > Thanks,
    >
    > Michael Singmin
    >




  3. #3
    Gord Dibben
    Guest

    Re: Format the Default Date

    Tom/Michael

    I can't get the short date format to return 14-Mar-05 in Excel by changing
    regional options in WindowsXP SP2.

    So, I assigned this macro to CTRL + d

    Sub NOWDATE()
    With ActiveCell
    .Value = Format(Date, "dd-mmm-yy")
    .Columns.AutoFit
    End With
    End Sub


    Gord Dibben Excel MVP

    On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy" <twogilvy@msn.com> wrote:

    >I suspect it uses the short date format. This can be redefined for windows
    >in the regional settings in the control panel.
    >
    >--
    >Regards,
    >Tom Ogilvy
    >
    >"Michael Singmin" <msing@mweb.co.za> wrote in message
    >news:5mu181hlm96ukfh331v8gngiu6eehvk6e3@4ax.com...
    >> Hello group,
    >>
    >> Ctrl ; inserts the current date into a cell
    >> It is always formatted as the first choice
    >> for dates viz. *14-03-01
    >>
    >> Can I change the default format to 14-Mar-01 whenever
    >> I use Ctrl ;
    >>
    >> Thanks,
    >>
    >> Michael Singmin



  4. #4
    Tom Ogilvy
    Guest

    Re: Format the Default Date

    After changing it, I had to close excel and reopen it, but it did change how
    thinks worked.

    From the immediate window:

    ? ActiveCell.Value
    38482
    ? Format(activecell,"Short Date")
    10-May-05

    However, it didn't do what the OP wanted. When I did the shortcut key
    combination, it entered it dd-mm-yy

    So I don't think there is a way to change the default unless you want to
    change the Normal style for number to be d-mmm-yy which did work, but then
    every number was interpreted as a date.

    --
    Regards,
    Tom Ogilvy




    "Gord Dibben" <gorddibbATshawDOTca> wrote in message
    news:5uc281tp8esfe1tpmcm9e4ms89bl3vfkfu@4ax.com...
    > Tom/Michael
    >
    > I can't get the short date format to return 14-Mar-05 in Excel by changing
    > regional options in WindowsXP SP2.
    >
    > So, I assigned this macro to CTRL + d
    >
    > Sub NOWDATE()
    > With ActiveCell
    > .Value = Format(Date, "dd-mmm-yy")
    > .Columns.AutoFit
    > End With
    > End Sub
    >
    >
    > Gord Dibben Excel MVP
    >
    > On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy" <twogilvy@msn.com> wrote:
    >
    > >I suspect it uses the short date format. This can be redefined for

    windows
    > >in the regional settings in the control panel.
    > >
    > >--
    > >Regards,
    > >Tom Ogilvy
    > >
    > >"Michael Singmin" <msing@mweb.co.za> wrote in message
    > >news:5mu181hlm96ukfh331v8gngiu6eehvk6e3@4ax.com...
    > >> Hello group,
    > >>
    > >> Ctrl ; inserts the current date into a cell
    > >> It is always formatted as the first choice
    > >> for dates viz. *14-03-01
    > >>
    > >> Can I change the default format to 14-Mar-01 whenever
    > >> I use Ctrl ;
    > >>
    > >> Thanks,
    > >>
    > >> Michael Singmin

    >




  5. #5
    Tom Ogilvy
    Guest

    Re: Format the Default Date

    All that said,
    I assumed preformatting the cells where you will do this is not possible.

    --
    Regards,
    Tom Ogilvy

    "Tom Ogilvy" <twogilvy@msn.com> wrote in message
    news:e3Qhb3bVFHA.2700@TK2MSFTNGP12.phx.gbl...
    > After changing it, I had to close excel and reopen it, but it did change

    how
    > thinks worked.
    >
    > From the immediate window:
    >
    > ? ActiveCell.Value
    > 38482
    > ? Format(activecell,"Short Date")
    > 10-May-05
    >
    > However, it didn't do what the OP wanted. When I did the shortcut key
    > combination, it entered it dd-mm-yy
    >
    > So I don't think there is a way to change the default unless you want to
    > change the Normal style for number to be d-mmm-yy which did work, but then
    > every number was interpreted as a date.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    >
    >
    > "Gord Dibben" <gorddibbATshawDOTca> wrote in message
    > news:5uc281tp8esfe1tpmcm9e4ms89bl3vfkfu@4ax.com...
    > > Tom/Michael
    > >
    > > I can't get the short date format to return 14-Mar-05 in Excel by

    changing
    > > regional options in WindowsXP SP2.
    > >
    > > So, I assigned this macro to CTRL + d
    > >
    > > Sub NOWDATE()
    > > With ActiveCell
    > > .Value = Format(Date, "dd-mmm-yy")
    > > .Columns.AutoFit
    > > End With
    > > End Sub
    > >
    > >
    > > Gord Dibben Excel MVP
    > >
    > > On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy" <twogilvy@msn.com>

    wrote:
    > >
    > > >I suspect it uses the short date format. This can be redefined for

    > windows
    > > >in the regional settings in the control panel.
    > > >
    > > >--
    > > >Regards,
    > > >Tom Ogilvy
    > > >
    > > >"Michael Singmin" <msing@mweb.co.za> wrote in message
    > > >news:5mu181hlm96ukfh331v8gngiu6eehvk6e3@4ax.com...
    > > >> Hello group,
    > > >>
    > > >> Ctrl ; inserts the current date into a cell
    > > >> It is always formatted as the first choice
    > > >> for dates viz. *14-03-01
    > > >>
    > > >> Can I change the default format to 14-Mar-01 whenever
    > > >> I use Ctrl ;
    > > >>
    > > >> Thanks,
    > > >>
    > > >> Michael Singmin

    > >

    >
    >




  6. #6
    Michael Singmin
    Guest

    Re: Format the Default Date

    Thanks Tom,

    I checked Regional Settings and the short date was okay.
    I decided to make my own macro for the date setting.

    Cheers,

    Michael


    "Tom Ogilvy" <twogilvy@msn.com> wrote:

    >I suspect it uses the short date format. This can be redefined for windows
    >in the regional settings in the control panel.



+ 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