So you can display in immediate window (but the same will be to store in a string variable) a name in such a way:
debug.Print ActiveWorkbook.Worksheets("Sheet1").Names("Yournamedvariable").RefersTo
you shall see the formula it refers to
then you can set a new reference like:
ActiveWorkbook.Worksheets("Sheet1").Names("Yournamedvariable").RefersTo ="=Sheet2!$C$12:$C$15"
and after importing use the same way to restore it
If your names have a workbook-wide scope then ommit Worksheets() part.
No, no offence. I know it's not easy to give just enough details (too few - there will be too obvious answers, too many -> TLDR
)
A yellow box at the top of this page gives quite useful (often) hint
Bookmarks