Hi Nigel,
Yes you should just be able to paste the code (as it stands currently) into a module in your workbook.
I'll try and explain the code
Sub amendS()
If the active cell is NOT in Column C then Exit the Sub
As long as there is something in the active cell set Temp Val to be whatever the formula 16 cells to the right of the active cell (ie Col S)
Change TempVal to the last 4 characters of that formula (ie !A41 or whatever)
Change TempVal to "=" PLUS Active cell's value PLUS TempVal (ie 123456!A41)
Place the new TempVal into the cell 16 cells to the right of the active cell
End If
End Sub
This now means that if Cell S1 contains "987654!A41" and you put "123456" into Cell C1 and then make sure you reselect C1 then press alt+t (or whatever combination you have chosen), it should make Cell S1 contain "123456!A41"
If you want to you could post a cutdown version of your workbook and I could have a look at it (minus any confidential info of course)
Sorry - just realised that TempVal was being reset to only catch the last 3 chars of the formula in S1 but it should have been 4 characters.
Bookmarks