How to check two fields in excel and act by that?
Solved/Closed
                    
        
                    akaldojad
    
        
                    Posts
            
                
            3
                
                            Registration date
            Sunday April  7, 2013
                            Status
            Member
                            Last seen
            April 12, 2013
            
                -
                            Apr  7, 2013 at 12:31 PM
                        
akaldojad Posts 3 Registration date Sunday April 7, 2013 Status Member Last seen April 12, 2013 - Apr 12, 2013 at 03:27 AM
        akaldojad Posts 3 Registration date Sunday April 7, 2013 Status Member Last seen April 12, 2013 - Apr 12, 2013 at 03:27 AM
        Related:         
- How to check two fields in excel and act by that?
 - How to check liked posts on x - Guide
 - Check mark in word - Guide
 - How to check bios version - Guide
 - Excel mod apk for pc - Download - Spreadsheets
 - How to check safari download history - Guide
 
3 responses
                
        
                    TrowaD
    
        
                    Posts
            
                
            2921
                
                            Registration date
            Sunday September 12, 2010
                            Status
            Contributor
                            Last seen
            December 27, 2022
            
            
                    555
    
    
                    
Apr 8, 2013 at 11:11 AM
    Apr 8, 2013 at 11:11 AM
                        
                    Hi Akaldojad,
Assuming A2 is entered first, try this code:
To implement the code, right-click the sheets tab and paste the code in the big white field.
Best regards,
Trowa
            Assuming A2 is entered first, try this code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A4")) Is Nothing Or _
Range("A4") = vbNullString Then Exit Sub
If Range("A2") = Range("A4") Then
CreateObject("WScript.Shell").Popup "OK!", 5, "This closes itself in 5 seconds"
Else: MsgBox Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & _
"Warning! CODES DO NOT MATCH" & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10), vbExclamation
MsgBox "Please read again", vbInformation
End If
Range("A2").ClearContents
Range("A4").ClearContents
End Sub
To implement the code, right-click the sheets tab and paste the code in the big white field.
Best regards,
Trowa
                
        
                    akaldojad
    
        
                    Posts
            
                
            3
                
                            Registration date
            Sunday April  7, 2013
                            Status
            Member
                            Last seen
            April 12, 2013
            
                    
Apr 12, 2013 at 03:26 AM
    Apr 12, 2013 at 03:26 AM
                        
                    Thanks! Working like charm:)
                
                
            
                
        
                    akaldojad
    
        
                    Posts
            
                
            3
                
                            Registration date
            Sunday April  7, 2013
                            Status
            Member
                            Last seen
            April 12, 2013
            
                    
Apr 12, 2013 at 03:27 AM
    Apr 12, 2013 at 03:27 AM
                        
                    Thanks! Its working like should.