I have a code, which basically makes one formula for B10, then it copies it all the way down and insert it back as values to remove the formula and make it more 'clean'.
My issue is that I have a defined 'lastrow' which in this case is 5000. Can I somehow introduce a lastrow which enables it code to copy it down until there is no data in the row. (if a specific column is to be used, then Column C can be used for this.
can this be solved?
Sheets("Table").Range("B10").Formula = "=LEFT(F10,4)&E10&D10&C10"
Sheets("Table").Range("B10").Copy
Sheets("Table").Range("B11:B5000").PasteSpecial xlPasteAll
Sheets("Table").Range("B10:B5000").Copy
Sheets("Table").Range("B10:B5000").PasteSpecial xlPasteValues