Rebellion34
Technical User
All,
I created a formula in Excel to allow me to scan in tracking numbers from FedEx and UPS that will display only the 12 digit tracking # from Fedex from the 36 digits created by the barcode but will leave the UPS style to display as is which works as long as I use 2 cells to make this transition. what I would like to have is a VB code that will allow this formula to work so that each # displays in the active cell i.e. the cell that I scan into, I know this is not possible using formula's as when the new info is entered the formula is overwritten and therefore is pointless. here is the formula can someone show me how to write this as VB please?
[blue]=IF(B1<"1z99999999999999999",B1,CONCATENATE("",MID(B1,17,12)))[/blue]
thanks in advance.
Rob
I created a formula in Excel to allow me to scan in tracking numbers from FedEx and UPS that will display only the 12 digit tracking # from Fedex from the 36 digits created by the barcode but will leave the UPS style to display as is which works as long as I use 2 cells to make this transition. what I would like to have is a VB code that will allow this formula to work so that each # displays in the active cell i.e. the cell that I scan into, I know this is not possible using formula's as when the new info is entered the formula is overwritten and therefore is pointless. here is the formula can someone show me how to write this as VB please?
[blue]=IF(B1<"1z99999999999999999",B1,CONCATENATE("",MID(B1,17,12)))[/blue]
thanks in advance.
Rob