Hello Everybody,
I run into a problem with EXCEL (nothing else has manifested yet) - basically two things:
UserForm.Hide stops Excel working;
another file with UserForm and 'user32' declarations upon opening throws this error, then out of memory, eventually stopping and crashing Excel.


this is in polish, but it says: catastrophic failure - BTW nice message, I already felt the gravity of the problem :)
I created a simple test file; scenario:
I open test file - it crashes, when I click the UserForm1;
after crash I open excel app (not the file) - crashed file is being opened with [last saved by user] remark and then it doesn't crash;
-- test.xlsm
Added empty UserForm
Private Sub Workbook_Open()
UserForm1.Show
End Sub
Private Sub UserForm_Click()
Me.Hide
End Sub
--
I used ListDLLs of sysinternals to see the difference between those two cases and it came up with two files:
C:\Windows\system32\igd10iumd64.dll
C:\Windows\system32\igc64.dll
if those are loaded - Excel doesn't crash;
ProcMon for failing scenario:
10:49:57,8945261 EXCEL.EXE 10896 RegQueryKey HKCU\Software\Policies SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,8946475 EXCEL.EXE 10896 RegOpenKey HKCU\Software\Policies\Policies\Microsoft\Office\16.0\Common\Roaming NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,8947316 EXCEL.EXE 10896 RegQueryKey HKCU\Software\Policies\Microsoft\office SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,8948104 EXCEL.EXE 10896 RegOpenKey HKCU\Software\Policies\Microsoft\Office\16.0\Common\Roaming NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,8948764 EXCEL.EXE 10896 RegQueryKey HKCU\Software\Policies\Microsoft\office SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,8949818 EXCEL.EXE 10896 RegOpenKey HKCU\Software\Policies\Microsoft\Office\16.0\Common\Roaming NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,8950770 EXCEL.EXE 10896 RegQueryKey HKCU\Software\Microsoft\Office SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,8951439 EXCEL.EXE 10896 RegOpenKey HKCU\Software\Microsoft\Office\16.0\Common\Roaming SUCCESS Desired Access: Maximum Allowed, Granted Access: All Access
10:49:57,8952608 EXCEL.EXE 10896 RegQueryValue HKCU\Software\Microsoft\Office\16.0\Common\Roaming\RoamingLastSyncTime SUCCESS Type: REG_BINARY, Length: 16, Data: E2 07 01 00 02 00 17 00 09 00 31 00 1B 00 C8 03
10:49:57,8953346 EXCEL.EXE 10896 RegCloseKey HKCU\Software\Microsoft\Office\16.0\Common\Roaming SUCCESS
10:49:57,9006302 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9007590 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9007959 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9008570 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9009063 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9011257 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9012820 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9013107 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9013784 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9014322 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9016492 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9018235 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9018551 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9019105 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9019544 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9071051 EXCEL.EXE 10896 IRP_MJ_READ C:\Program Files\Microsoft Office\root\vfs\System\FM20.DLL SUCCESS Offset: 1 430 528, Length: 16 384, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal
10:49:57,9092592 EXCEL.EXE 10896 IRP_MJ_READ C:\Program Files\Microsoft Office\root\vfs\System\FM20.DLL SUCCESS Offset: 1 414 144, Length: 16 384, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal
10:49:57,9097420 EXCEL.EXE 10896 IRP_MJ_READ C:\Program Files\Microsoft Office\root\vfs\System\FM20.DLL SUCCESS Offset: 1 405 952, Length: 8 192, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal
10:49:57,9100977 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9102909 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9103430 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9104037 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Microsoft\CTF\KnownClasses NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9104509 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\CTF\KnownClasses NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9139005 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9140116 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9140408 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9140929 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9141388 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9144965 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9146007 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9146233 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9146622 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9146934 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9149301 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9150339 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9150565 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9150893 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9151180 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9154113 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9155237 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9155619 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9156094 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9156562 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9158482 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9159409 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9159606 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9159934 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9160209 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9162080 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
10:49:57,9163458 EXCEL.EXE 10896 RegQueryKey HKLM BUFFER TOO SMALL Query: Name, Length: 0
10:49:57,9163655 EXCEL.EXE 10896 RegQueryKey HKLM SUCCESS Query: Name
10:49:57,9163950 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
10:49:57,9164205 EXCEL.EXE 10896 RegOpenKey HKLM\SOFTWARE\INTEL\IGFX\D3D10 NAME NOT FOUND Desired Access: Maximum Allowed
then DW kicks in
I repaired Office - nothing, then deinstalled and installed Office - nothing
deinstalled graphics drivers, installed those from Windows Update, deinstalled, installed Intel's, deinstalled, installed Dell's - didn't helped on any step.
fixed all VC and .NET libraries - didn't help, but at least got those cleaned :)
this has to be system issue - I created another account on Windows and it has same issue, so creating new profile won't help.
Office x64, Running on Win7Pro SP1 x64, running on DELL Latitude E5570 - all up to date: BIOS, chipset, drivers, Windows Update, Office update - ALL.

Please HELP I don't want to install whole system from scratch - I'll loose a week at least to set up everything back again...
@edits due to dissapearing pictures