I need help with excel VBA function.
I have data that looks like
ColA ColB
a123 a123
a124 a124
a127 a126
a128 a127
.... ....
I want to compare the contents of ColA and ColB where the contents are different. I want to insert an empty cell in column A. Thus, the result will look like this:
ColA ColB
a123 a123
a124 a124
a126
a127 a127
.... ....
Any suggestions on how I can do this in Excel.
Thanks in advance
UPDATED
I tried the method below with the following code to insert a cell and it works fine, now I understand when I run it, but I need some more functionality.
first_col.Cells(row, 1).Select
Selection.Insert Shift:=xlDown
ColA "a" ColB "a", ColA, ColC ( ). ColB , ColB. , , If, , IF.
Set other_col = Range("C1:C100")
//if substring of ColA > substring of ColB
first_col.Cells(row, 1).Select
Selection.Insert Shift:=xlDown
other_col.Cells(row, 1).Select
Selection.Insert Shift:=xlDown
//else
second_col.Cells(row, 1).Select
Selection.Insert Shift:=xlDown