q1
declare a variable named DataEnd as a Long type variable
Variables hold information/data that used later within the macro
q2
places a sum furmula in a cell that sums column e from row 6 to 2 rows above the row where the formula is placed
e.g
if activecell is e31 the following comand
places this formula =SUM($E$6:$E29) in e31
q3
the 2 lines of commands uses 2 different viarables
TotalsRow & DataEnd
finds the last used cell in column k
puts the row number into a variable for later use
In the following command DataEnd should hold a row number
e.g If DataEnd has row value 20
Places lookup formula in f6 to f20
lookup formula. e.g
if last used row in column K is row 50 then the lookup formula
is the same as saying
Bookmarks