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

I want to add a prompt when i change a date in a cell. I am using a date
field that is linked to several work sheets. When i change the date i want to
be prompted with a message " update Audit sign off book" If you guy s can
help me out that would be great. Thank you in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Prompts

In the Worksheet_Change event for that sheet check if the changed cell is the
one where the date is entered

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address(False, False) = "A1" Then MsgBox "Update Audit Signoff book"

End Sub

(Replace "A1" with the necessary address)


"Carrguy" wrote:

I want to add a prompt when i change a date in a cell. I am using a date
field that is linked to several work sheets. When i change the date i want to
be prompted with a message " update Audit sign off book" If you guy s can
help me out that would be great. Thank you in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Prompts

Right click on the sheet tab and select view code. Paste in code like this.
Adjust to react to changes in the appropriate column (as written, the 3 means
the dates are in column 3)

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count = 1 Then
If Target.Column = 3 Then
MsgBox "update Audit sign off book"
End If
End If
End Sub

If it is a specific range of value only, assume C3:C20


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count = 1 Then
If Not Intersect(Target,Range("C3:C20")) is nothing Then
MsgBox "update Audit sign off book"
End If
End If
End Sub

as an example.

--
Regards,
Tom Ogilvy


"Carrguy" wrote:

I want to add a prompt when i change a date in a cell. I am using a date
field that is linked to several work sheets. When i change the date i want to
be prompted with a message " update Audit sign off book" If you guy s can
help me out that would be great. Thank you in advance

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
Turn off prompts Keith Excel Discussion (Misc queries) 1 November 9th 09 09:48 PM
Save Prompts PMOPS Excel Worksheet Functions 1 August 26th 08 05:40 PM
Formula Prompts Rob L Excel Discussion (Misc queries) 2 July 13th 08 09:19 AM
Prompts sdmccabe Excel Discussion (Misc queries) 1 April 13th 06 06:03 PM
Eliminating Prompts Andrew Park Excel Programming 0 July 10th 03 01:42 AM


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