I am new to VBA, but I am experienced in C#. So I am sure i am just having a disconnect somewhere with how to actually do this. I am working in Excel.
I have an array with some specific values in it. The array is declared as follows:
Dim CodesToSplit(2)
CodesToSplit(0) = 80000060
CodesToSplit(1) = 80000094
I need to go through all the rows and if the cell contents in Column G match any of the values in my array I need to do the following:
Insert a new row (above or below, it doesn't matter)
Copy the contents of the row to the new row
Take the value in column H and in one of the rows it should be 1, the other will be the original value of cell H - 1
So if the row is setup like this:
Cell G Cell H
Row 1 80000060 4
After it should look like this:
Cell G Cell H
Row 1 80000060 1
Row 2 80000060 3
Any help would be greatly appreciated
Bookmarks