SetParent function (winuser.h) | Microsoft Docs[
^]
Never checked it on Excel or other complicated applications, but it should work...
SetParent(pr.MainWindowHandle, [the handle of your window to put Excel into]);
Of course this code (yours) assumes that Excel running, you have to start it if not...