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

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default MESSAGE ALERT

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   Report Post  
Posted to microsoft.public.excel.programming
EAB EAB is offline
external usenet poster
 
Posts: 1
Default MESSAGE ALERT

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
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
custom alert message Jim Hunt Excel Discussion (Misc queries) 3 January 1st 08 11:49 PM
Message alert laurenm Excel Discussion (Misc queries) 6 December 19th 06 08:05 PM
Alert Message In need of help! Excel Discussion (Misc queries) 1 November 17th 06 01:04 PM
Query Alert Message GregR Excel Discussion (Misc queries) 0 February 9th 06 11:50 PM
How to send an alert message to other apps? dchow Excel Programming 1 September 26th 03 10:32 PM


All times are GMT +1. The time now is 07:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"