Hello! I'm a little bit frustrated because this macro is not working. Good thing is that I'm not receiving an error message but it is not working.
I need to change the cell value of the information of Sheet 1 to the cell value of a conversion table at Sheet 2.
I need to change the cell value of the information of Sheet 1 to the cell value of a conversion table at Sheet 2.
Code:
Sub ChangeName()
Dim h As Double
Dim g As Long
For h = 0 To 300
For g = 0 To 100
On Error Resume Next
If Sheets("Sheet 1").Cells(h, "B1").Value = Sheets("Sheet 2").Cells(g, "A1").Value Then
IgnoreBlank = True
Sheets("Sheet 2").Cells(g, "B") = Sheets("Sheet 1").Cells(h, "B")
Else: MsgBox "Error!"
End If
Next g
Next h
End Sub