I am using DLookup functions like
=DSUM(ImportData,$A$7,I10:J11)
where ImportData is a named range. This works fine but the data is from a WebQuery and the number of rows can change each time it is refreshed.
At the moment I use code to find the size of the range and reset the range for the range name “ImportData”.
Is there any way to replace the range name with a function that will automatically pick up the size of the data?
Many Thanks
Peter