Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default popup message

I would like a popup message to inform the user that the budgeted value they
entered in a cell is larger than 1.0825 times the old amount. This is for
departments submitting budget for 2007 and there is a cap of 8.25% on
increases. The message box would serve as a reminder to them when they are
going over the budget limits.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default popup message

The specs could be more complete, but you can start with the
following. It assumes the budgeted amount is entered in cell B2 and
the prior year's amount is in cell A2. Maybe you need to use
Target.Column or Target.Row in place of Target.Address. Put this in
the worksheet's code module.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" Then
If Target 1.0825 * Range("A2") Then
MsgBox "Amount entered may not exceed 1.0825 times prior
year's budget."
Target = ""
End If
End If
End Sub

Hth,
Merjet

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
Message popup bbc1 Excel Discussion (Misc queries) 7 August 15th 05 03:29 PM
Popup or Information Message Todd Huttenstine Excel Programming 3 May 25th 04 02:45 AM
Popup message Todd Huttenstine[_2_] Excel Programming 2 November 14th 03 08:45 PM
popup message window Tom Ogilvy Excel Programming 0 August 26th 03 01:02 PM
Popup message window with name shah[_2_] Excel Programming 2 August 26th 03 02:40 AM


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