Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having difficulty creating a macro that would display
a message 'value does not' if a value in cell A2 on worksheet1 does not match with the value in cell A2 on worksheet2. Please someone help me, thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Shyla,
If Sheets("Sheet1").Range("A2") < Sheets("Sheet2").Range("A2") Then Msgbox "Value does not match" End If Change Sheet1 and Sheet2 to the sheet names. Or If Activecell < Sheets("Sheet2").Range(Activecell.Address) Then Msgbox "Value does not match" End If -- sb "Shyla" wrote in message ... I am having difficulty creating a macro that would display a message 'value does not' if a value in cell A2 on worksheet1 does not match with the value in cell A2 on worksheet2. Please someone help me, thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Worksheets("[name of worksheet1]".Range("A1").Value <
Worksheets("[name of worksheet2]").Range("A2").Value Then Msgbox "Value does not match" Else: End If |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom alert message | Excel Discussion (Misc queries) | |||
Message alert | Excel Discussion (Misc queries) | |||
Alert Message | Excel Discussion (Misc queries) | |||
Query Alert Message | Excel Discussion (Misc queries) | |||
How to send an alert message to other apps? | Excel Programming |