LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Force condition on all Rows


Hi there,

I am using the following code to print the system date and time in
column 3 when the user types something in column 1. However this only
ranges from row A2 to row A20.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([A2:A20], Target) Is Nothing Then
Application.EnableEvents = False
Cells(Target.Row, 3) = Now
Application.EnableEvents = True
End If
End Sub

I would like however, to set this condition for all of the column and
not just rows 2 through 20.

Any help would be greatly apreciated

Aidan Mullane


--
afmullane
------------------------------------------------------------------------
afmullane's Profile: http://www.excelforum.com/member.php...o&userid=33567
View this thread: http://www.excelforum.com/showthread...hreadid=533514

 
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
Force a filter beyond blank rows duketter Excel Discussion (Misc queries) 1 January 19th 10 06:53 PM
Insert rows with condition using macro Shazza Excel Discussion (Misc queries) 6 September 5th 08 12:06 AM
Pivot Table- force rows with no data to be hidden SaeOngJeeMa Excel Discussion (Misc queries) 1 November 8th 07 01:49 AM
Hiding rows on condition Catherine Bond Excel Worksheet Functions 3 June 23rd 06 06:19 PM
delete rows with certain condition Grey Excel Programming 2 December 19th 03 12:05 PM


All times are GMT +1. The time now is 03:44 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"