Hello everyone,
I am a novice at VBA and macros, but I've gone far using this great forum and a lot of trial and error until now.
I'm currently stumped on how to insert a formula using a VBA routine. I have a userform that collects information and a SaveButtonClick() that transfers and the userform data to several cells in column's 1,5 thru 16 in a "data" sheet. However, cells in columns 2,3 & 4 in the data sheet required a vlookup formula and I hoped that adding the formula to the "transfer" syntax in the routine would work. I'm not sure if this method is the best, or if a copy/paste syntax would be more appropriate to insert formulas. Also, the vlookup's lookup_value has to come from the formula's active row (the row it was just copied to), specifically, column 1 or A.
Warm wishes and many thanks on any help you can give!
____________________
Bookmarks