by Sisyphus » Wed Nov 06, 2013 11:12 pm
There are a number of threads on this forum where this subject was successfully dealt with. However, bear in mind that Excel doesn't have the capability to write anything to any cell. What it is good at is to display things in a cell which aren't there, for example results of calculations. If you have a cell in which a number is already written and you wish to replace that number with another (incremented by 1, for example) a worksheet function can't help. You either have to enter the number yourself or get VBA to do it for you. Therefore, the above mentioned solutions are all VBA based and you will find them on the forum for VBA and Macros.
Enter "barcode" in the search field and study the threads that come up. One of them can surely be modified to do exactly what you want.
Have a great day!

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)