The octothorpes/pound signs/hash tags were because I misread this:
Please use # icon on toolbar when posting code snippets.
I've put my api calls below. I have also decided to completely recreate this form, copying and pasting each bit of code into an empty copy of the form. I'm about 25% finished and so far everything works fine, which leads me to believe there's something funky in the original, probably something I've forgotten I ever used and should have cleaned up long ago.
Code:
'-- API Calls for getting the current user and computer names
Declare PtrSafe Function wu_GetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) _
As Long
Declare PtrSafe Function wu_GetComputerName Lib "kernel32" Alias _
"GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) _
As Long
Public Declare PtrSafe Function GetTickCount Lib "kernel32" () As Long
Declare PtrSafe Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation _
As String, ByVal lpFile As String, ByVal lpParameters _
As String, ByVal lpDirectory As String, ByVal nShowCmd _
As Long) As Long
Declare PtrSafe Function apiFindWindow Lib "User32" Alias "FindWindowA" _
(ByVal lpclassname As Any, ByVal lpCaption As Any) As Long
Thank you so much for your time.