In the same workbook: I have one worksheet named pc1 , another named pc
I want to compare both - if identical (exactly the same) - then exit the sub routine
the syntax below is not working - pls help in the correction (I have search the net but couldn't find the right one)
inside a sub routine
If Worksheets("pc1") = Worksheets("pc") Then
MsgBox "No changes found..the 2 worksheets are identical"
exit sub
End If
End Sub
the [Worksheets("pc1") = Worksheets("pc")] is hi-lighted to be incorrect - how should this be written?
many thanks
I want to compare both - if identical (exactly the same) - then exit the sub routine
the syntax below is not working - pls help in the correction (I have search the net but couldn't find the right one)
inside a sub routine
If Worksheets("pc1") = Worksheets("pc") Then
MsgBox "No changes found..the 2 worksheets are identical"
exit sub
End If
End Sub
the [Worksheets("pc1") = Worksheets("pc")] is hi-lighted to be incorrect - how should this be written?
many thanks