#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Newbie

I am trying to create a macro that would change a cell to the current date
and time when any of cells L17:L89 values change. If they are deleted,
that's fine, just when they change to something else is the key. The cells
contain yes/no and unsatisfactory/satisfactory answers from a drop down list.
Thx.
--
....It''''''''s The Magnificent!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default VBA Newbie

Hi

Place this code in the codesheet for the desired sheet. And change A1 to the
cell reference where you want the date and time to appear.

Private Sub Worksheet_Change(ByVal Target As Range)
Set isect = Application.Intersect(Target, Range("L17:L89"))
If Not isect Is Nothing Then Range("A1") = Now()
End Sub

Regards,
Per

"DJ Magno" skrev i meddelelsen
...
I am trying to create a macro that would change a cell to the current date
and time when any of cells L17:L89 values change. If they are deleted,
that's fine, just when they change to something else is the key. The
cells
contain yes/no and unsatisfactory/satisfactory answers from a drop down
list.
Thx.
--
...It''''''''s The Magnificent!!!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[newbie] Jon Excel Discussion (Misc queries) 3 March 29th 09 10:10 AM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie -& I am not getting this BruceG Excel Programming 8 October 22nd 06 07:42 PM
Newbie Help. Is this possible? taltos1 Excel Discussion (Misc queries) 5 November 12th 05 04:40 PM
newbie VBA help please SteveFerd Excel Programming 12 July 21st 05 03:04 PM


All times are GMT +1. The time now is 04:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"