Generally you will need to run an online repair for microsoft excel. Windows updates take away a library they depend on using i think.
Alternatively, try my excel nodes in Crumple package which i made to deal with this. In revit 2022+ the excelxml nodes should work reliably.