I need to test the Excel Password to make sure it will work without just aboring. If the password is correct then all if good but I can not figure out how to test it. If the password is correct this will open the file then close it.. how would I go about testing it?
Jeanne wrote:I need to test the Excel Password to make sure it will work without just aboring. If the password is correct then all if good but I can not figure out how to test it. If the password is correct this will open the file then close it.. how would I go about testing it?
what about using BEGIN / SEQUENCE ?
see reply in Alaska Newsforum, public.xbase++.activex, "re: validate Excel password", 5. Juli 2010
I thought that sounded like a great ideal. But when I did it I got the Microsoft Excel spread sheet with the Microsoft password prompt popup behind my application. You could not see the Microsoft password prompt until you clicked on the Excel window. This is not the way I was hoping to handle this issue. I want to handle the password issue myself in my application.
Jeanne wrote:You could not see the Microsoft password prompt until you clicked on the Excel window. This is not the way I was hoping to handle this issue. I want to handle the password issue myself in my application.
DLLFUNCTION ShowWindow( nHwnd, nCmdShow ) USING STDCALL FROM USER32.DLL
DLLFUNCTION BringWindowToTop( nHwnd ) USING STDCALL FROM USER32.DLL
DLLFUNCTION SetForegroundWindow( nHwnd ) USING STDCALL FROM USER32.DLL