Results 1 to 3 of 3

Add date to a cell with a click...Easy one...

Threaded View

Aus_Dex Add date to a cell with a... 12-08-2011, 09:52 AM
tom1977 Re: Add date to a cell with a... 12-08-2011, 10:09 AM
Aus_Dex Re: Add date to a cell with a... 12-08-2011, 09:16 PM
  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Add date to a cell with a click...Easy one...

    Hi,
    I am trying to get a formula setup so when you click on a cell in excel it automatically enters the date. I am using the formula below which works however, I only want it to work on certain cells, ie. A1:A30, A35:A40, C15:C20 etc. Can anyone help me with my very limited VBA Skills. Formula is as follows:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address = ActiveCell.Address Then
    Target = Format(Now, "dd/mm/yyyy")
    End If
    End Sub.
    Thanks a bunch
    Last edited by Aus_Dex; 12-09-2011 at 12:49 AM. Reason: Added Code Tags

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