Applying Mask For Date Entries

  • I'd like to enter dates without having to use the forward slash symbol between the day, month and year values. I've read a post by Dave Hawley explaing how to do it, but I can't get it to work for me. There must be some step that I am not aware of. Help please.

  • Re: Applying Mask For Date Entries


    Quote from dejayajay

    I've read a post by Dave Hawley explaing how to do it, but I can't get it to work for me. There must be some step that I am not aware of. Help please.


    Please provide the link to it, will you?

    Regards,


    Wigi


    Excel MVP 2011-2014


    For more Excel memes: visit http://www.wimgielis.com ==> English articles ==> Excel memes


    -- Topics without [CODE] tags or a meaningful topic title, will be neglected by me (and probably many others as well) --

  • Re: Applying Mask For Date Entries


    Quote from dejayajay

    I'd like to enter dates without having to use the forward slash symbol between the day, month and year values. I've read a post by Dave Hawley explaing how to do it, but I can't get it to work for me. There must be some step that I am not aware of. Help please.



    Pls explain what you do, Have you put this in the worksheet?

    .¸¸·´¯'·.¸¸.·´¯'·.¸¸·´¯'·.¸¸.·´¯'·.¸¸·´¯'·.¸¸.· ><((((º>

  • Re: Applying Mask For Date Entries


    Thanks for your reply. To check, I went tools/macros/VBE/view Project Explorer, then double clicked the Sheet for the workbook. The code is there as I placed it. I haven't modified the code at all. The cells that I am entering the date in are all in Column A. Should the macro now work automatically when I type in the dates as say 010107 for Jan 1 2007? I have the cells formatted to dd/mmm/yy. Please excuse my lack of knowledge.

  • Re: Applying Mask For Date Entries


    You don't need to format the cells.


    Have you placed it in the WorkSheet_hange as below?


    Have you got Macros Enabled?

  • Re: Applying Mask For Date Entries


    hgus393 has kindly posted the link in his reply. I have replied to another response. Now waiting for more assistance. Will check again tomorrow. Thanks, and good night for now.

  • Re: Applying Mask For Date Entries


    Macros were enabled. Now when I try to use one of my regular macros eg 'Merge NextSixCells', I get the message "Complile Error: Invalid Outside Proceedure". Re your other questions, I have 'de-formatted te cells in question, back to General Format. And I amended the code to match your copy above - added Option Explicit at the top, and End With / Application.Enable Events = True / End Sub at the end (without the '/'s).


    But that's it for me for tonight. I'll check back tomorrow. Thanks.

  • Re: Applying Mask For Date Entries


    OK. I've got it to work, but only in a fresh worksheet, with none on my other macros running or present. My limited knowledge is a definite handicap here. If one of you 'helpers' pick up this thread again, I'd still like to get it functioning in all my worksheets. Thanks.

  • Re: Applying Mask For Date Entries


    Quote from dejayajay

    OK. I've got it to work, but only in a fresh worksheet, with none on my other macros running or present. My limited knowledge is a definite handicap here. If one of you 'helpers' pick up this thread again, I'd still like to get it functioning in all my worksheets. Thanks.


    You need to add the code to each worksheet that you want it to work on

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!