For some reason, this code works when I create a brand new workbook(for testing)... when I use it in the actual one it needs to be implemented into, it doesnt work at all
Sub dupl_cols()
q = "=if(Sheet1!RC<>"""",Sheet1!RC,"""")"
Sheet2.[a:b] = q
'etc
End Sub
When I run this in the workbook thats not working, it opens a box asking for "Duplicate Values" which wants me to open a seperate file... and gives me a #REF error
Any idea why this might be happening?? Can you use this code when the cells you want to duplicate are coming from a vlookup??
Sub dupl_cols()
q = "=if(Sheet1!RC<>"""",Sheet1!RC,"""")"
Sheet2.[a:b] = q
'etc
End Sub
When I run this in the workbook thats not working, it opens a box asking for "Duplicate Values" which wants me to open a seperate file... and gives me a #REF error
Any idea why this might be happening?? Can you use this code when the cells you want to duplicate are coming from a vlookup??