Home > Software engineering > Programs written in VB6 can not run under Windows 7, the individual win10 running also wrong, please
Programs written in VB6 can not run under Windows 7, the individual win10 running also wrong, please
Time:09-17
Everybody, good webmaster, In win10 64 home edition to use VB6 program can not run on Windows 7, on a colleague win10 can run, specific as follows: I system platform are as follows: win10 family version, office 2013 1) my programs are written in VB6 platform, call call to excel in the user input data on the form, and save to excel XLS format file and TAB delimited. TXT file, 2) in the setup factory 9.1 installation package, installed and run under most win10, but in a colleague's win10 home edition and excel 2010 installed On normal, but the runtime can't Open I specify excel file template, return an Error number is: 2147021892, the program code is as follows: On the Error Resume Next Set ExlWorkBook=Exlapp. Workbooks. Open (App) Path & amp; "\ Spec_Upld_Template. XLS") 3) is installed in Windows 7 is normal, the runtime "unexpected error", Kneel beg god give directions, thank you, thank you, thank you!
CodePudding user response:
On the Error Resume Next
Applications need to use the process of "third party" such as Excel to operate, also dare to On Error Resume Next In this, also want to find "the reason for the error!" Wash your sleep...
CodePudding user response:
How to improve? Elder give advice or comments, please!!!!!
CodePudding user response:
Because you compiled environment based on 2013, so the compiled 2010 wrong calls, Do you want to compile environment based on 2010, and then call 2013 is steady