excel: how to convert .bas file to vbscript/exe or running from command line?

后端 未结 3 1160
忘掉有多难
忘掉有多难 2020-12-06 08:57

How to convert .bas file to vbscript/exe or running from command line ? I did script in Excel by MS Visual Basic for Aplications, but i can run this scrip only under Excel.

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-06 09:16

    I'm afraid that the short answer is that you can't, well at least not directly. VBA and VBS are slight variant's and while you could save the code into a .vbs file I very much doubt that it would do anything without changing it to VB Script.

    To make a .exe you will need something like Visual Studio. Even then you would probably need to rework your code to make it do it's job.

    I guess it depends on what your code does.

提交回复
热议问题