VBA force only date format in a certain cell on a certain sheet
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: VBA force only date format in a certain cell on a certain sheet
Thanks Thanks: 0 Likes Likes: 0

  1. #11
    Board Regular
    Join Date
    Jul 2019
    Posts
    105
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA force only date format in a certain cell on a certain sheet

    Sorry I did not clarify, I am using your code. The event activation you provided just needed an End Sub instead of Exit Sub. It is working now. Thank you for your help.

  2. #12
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,383
    Post Thanks / Like
    Mentioned
    54 Post(s)
    Tagged
    11 Thread(s)

    Default Re: VBA force only date format in a certain cell on a certain sheet

    The event activation you provided just needed an End Sub instead of Exit Sub
    Ah, yes. Sorry about that!

    Glad to hear things are working.

    One of the advantages to the code that I provided is that it is easy to change it to work on any range, whether it be a single cell, whole column, or other shaped range.
    Simply change the range value in the top procedure, and everything will flow off of that.
    Last edited by Joe4; Aug 13th, 2019 at 05:15 PM.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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