another little one

mariomenc

New Member
Joined
Aug 25, 2005
Messages
26
I'll like to know how to run a macro (lets call it macro1) if cell A1=B1 and run macro2 if A1<>B1

is this possible?

thanks
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

iggydarsa

Well-known Member
Joined
Jun 28, 2005
Messages
1,647
Code:
If Range("A1").Value=Range("B1").Value Then
    Macro1
Else
    Macro2
End If
 

Watch MrExcel Video

Forum statistics

Threads
1,118,050
Messages
5,569,891
Members
412,298
Latest member
dietitiann
Top