excel vba - How to freeze a range in VBA Custom function? -
i want use udf function in excel freeze range when user drag formula. code here:
public function division(rng1 range, rng2 range, rng3 range) division = application.worksheetfunction.sum(rng1) / application.worksheetfunction.sum(rng2) * rng3 end function
i want lock rng1
, rng2
in vba, not in excel sheet dollar sign. how can lock range.
Comments
Post a Comment