I am using rslinx to populate row 2 of a Excel sheet. I have a macro that will copy the real time data from row 2 and insert a new row below and paste the data in the new row. The data is in cells A2-N2. In cell O2 I have a bit value from my PLC (1 or 0). When O2 goes from 0 to 1 the data gets copied and pasted as it should. The problem is when O2 goes from 1 to 0 the data gets copied and posted also. I am not good at VB code at all. If anyone could look at the attached file and make some suggestions or write a proper code it would be a great help.