Forum Discussion
KB5002653 issue with the Kernel Function GetCommandLineW
Interrupting in this thread with a comments not based on VBA.
We have had the same issue as described in this thread and have implemented the standard functionality with GetCommandLine. We are running Excel 2016 32-bit.
GetCommandLine was broken by a Windows/Office update. The string it returned was simply cut off and incomplete causing the program to fail with an error. I cannot find KB5002653 in the Update History on the server any longer, so maybe it has included in a more recent update. I don't know.
Nevertheless, what worked for us in two instances now was to unistall Excel 2016 32-bit from the server and reinstall it again.
Somehow this restores the way GetCommandLine works, even with the Windows/Office updates, and the solution is now running again. How and why, I do not know however.