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

后端 未结 3 1164
忘掉有多难
忘掉有多难 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:07

    I think everyone has made good points here, but one thing I did not see that would be a big issue is that with VBA and Visual Basic you can use the On Error GoTo command and set an Error line using something such as MainErrorHandler: at the bottom of the function. VB Script does not allow this and you need to use On Error GoTo 0 or On Error Resume next which are both allowed in VBA and Visual Basic. the error handling in VB Script however is allowed in all VB languages.

提交回复
热议问题