Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("A7:A500")) Is Nothing Then Target.Value = Date ThisWorkbook.Sheets("Sheet1").Select End If End Sub Based on your discription you must have a copy af the macro on every sheet You could have just 1 macro in the Workbook module This code does exactly the same for everysheet except sheet1 and is the only macro required - Place macro in ThisWorkbook module If required it can be easily modified so that it does not run on mulitple sheets Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If Not LCase(Sh.Name) = "sheet1" Then If Not Intersect(Target, Range("A7:A500")) Is Nothing Then Target.Value = Date ThisWorkbook.Sheets("Sheet1").Select End If End If End Sub -- mudraker If my reply has assisted or failed to assist you I welcome your Feedback. www.thecodecage.com ------------------------------------------------------------------------ mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=69321 |