Hello guys,
I have this table:
Windows("RECONCILIATION WORKING FILE.xlsx").Activate
table.JPG
I am building a macro where I paste data (columns A to E) to a new excel file (thus, columns F and G are blank) and then:
1. I need to go to the last column with data in row 2 (in this case cell F2) and I add the text: 'New Account'
2. Then I need to go down one row and paste a formula (in this case cell F3): =IF(OR(LEFT(B3,5)="10099",LEFT(B3,5)="10000"),LEFT(B3,5)&"-"&RIGHT(B3,3),LEFT(B3,2)&"-"&MID(B3,11,7)&"-"&LEFT(B3,5))
3. Then I need to copy the formula until the last row of data
4. Then I need to do the same thing for colum G (another text and another formula).
So far I have this:
but it doesn't work, it shows a 'compilation error' in the formula part of the formula (''10099'') and it stops.... also, I am not sure it is ok.....
please could anyone help me out to finish the code?
thanks!
Bookmarks