hi wwconslt, these rows are strange - it is generally inadvisable to have two different datatypes per column, and also i'm not really following why some of those columns are labeled as they are... "Gift Code" returns a credit card type? Campaign ID and Gift Desig both return the same exact value... called Desig Code on 'Payment_Type_D'...?
anyway, i'd highly recommend turning those 3 columns (E:G) into 6 columns so you can avoid the data-mismatch within a given column.
but, your ask was around inserting functions, for which the code is:
ActiveCell can (and probably should) be replaced with a variable you've declared up front, and based on your dataset i'm guessing you really want your code to look something like this:
Bookmarks