set pivottable source data to range name
I have a pivottable which i need to link to a range name set within a macro,
i.e. macro runs, sets range variable, pivottable sourcedata equals this,
refresh pivottable.
what is the best way of doing this as i can't seem to do it without running
the wizard?
|