Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Macro for cell showing exact value

Hi,

Can anyone help me on this.
I want a message box poping up with message saying as "Do you want to close
the Batch" whenever there is value 50 in the cell "D2"

Please do help me with a macro on the same

vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Macro for cell showing exact value

vijay

Put this code in the worksheet object:

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

If Range("d2").Value = 50 Then MsgBox "Dow you want to close the
Batch?"

End Sub


I suspect you will want to do more eventually, but, this should
accomplish what you have asked so far.

Good luck


Ken
Norfolk, Va

On Oct 12, 1:22*pm, vijay wrote:
Hi,

Can anyone help me on this.
I want a message box poping up with message saying as "Do you want to close
the Batch" whenever there is value 50 in the cell "D2"

Please do help me with a macro on the same

vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm....mspx?mid=4f66....


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Macro for cell showing exact value

A slight mod to provide a Yes/No. Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("d2").Value = 50 Then _
MsgBox "Do you want to close the Batch?", 4, "Close?"
End Sub
"Ken" wrote in message
...
vijay

Put this code in the worksheet object:

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

If Range("d2").Value = 50 Then MsgBox "Dow you want to close the
Batch?"

End Sub


I suspect you will want to do more eventually, but, this should
accomplish what you have asked so far.

Good luck


Ken
Norfolk, Va

On Oct 12, 1:22 pm, vijay wrote:
Hi,

Can anyone help me on this.
I want a message box poping up with message saying as "Do you want to
close
the Batch" whenever there is value 50 in the cell "D2"

Please do help me with a macro on the same

vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm....mspx?mid=4f66...



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
How to strore exact double from macro into Excel cell? JoeU2004 Excel Programming 24 October 8th 09 12:57 PM
Copying exact formula from one worksheet to another within a macro Eric_G Excel Programming 3 March 5th 09 06:20 PM
Routine to find exact Row matches in Col1 Col2 Col3 but exact offsetting numbers in Col4 [email protected] Excel Discussion (Misc queries) 0 June 11th 08 11:30 PM
Macro to Lookup Exact Value K[_2_] Excel Programming 3 December 16th 07 09:07 PM
Macro to compare values and return exact matching value [email protected] Excel Programming 1 January 2nd 04 11:59 PM


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