Thanks for providing us further details.
For your case, you may try to use NameCollection and Name object which has Text and RefersTo attributes. See the sample code below for your reference:
Workbook wb = new Workbook(“e:\test2\Bk_names1.xlsx”);
WorksheetCollection worksheets = wb.Worksheets;
NameCollection names = worksheets.Names;
for (int i = 0; i < names.Count; i++)
//Get the name
//Get the refers to
Note: you may also try to use the same Name.Text and Name.RefersTo attributes to set or update the named ranges accordingly.
Let us know if I can be of any further help.