Hi,
Hope you can help. I'm trying to compare the text in two ranges of cells.
eg.
Sheet1 A1:B4 compare with Sheet2 A1:B4
compare A1 with A1, A2 with A2 etc
here is my code to date:
Sub Select_Schedules()
Dim my_Original_Range As Range
Set my_Original_Range = Application.InputBox( _
prompt:="Select the ORIGINAL range of cells", _
Title:="Title here", Type:=8)
Dim my_New_Range As Range
Set my_New_Range = Application.InputBox( _
prompt:="Select the NEW new range of cells", _
Title:="Title here", Type:=8)
For Each c In my_Original_Range.Cells
'This is where i'm struggling!
If c.Value = my_New_Range Then
MsgBox "all ok"
Else
MsgBox "errors"
End If
Next
End Sub
I would really appreciate your assistance.
Regards,
Pantsman
Hope you can help. I'm trying to compare the text in two ranges of cells.
eg.
Sheet1 A1:B4 compare with Sheet2 A1:B4
compare A1 with A1, A2 with A2 etc
here is my code to date:
Sub Select_Schedules()
Dim my_Original_Range As Range
Set my_Original_Range = Application.InputBox( _
prompt:="Select the ORIGINAL range of cells", _
Title:="Title here", Type:=8)
Dim my_New_Range As Range
Set my_New_Range = Application.InputBox( _
prompt:="Select the NEW new range of cells", _
Title:="Title here", Type:=8)
For Each c In my_Original_Range.Cells
'This is where i'm struggling!
If c.Value = my_New_Range Then
MsgBox "all ok"
Else
MsgBox "errors"
End If
Next
End Sub
I would really appreciate your assistance.
Regards,
Pantsman