Forum Discussion
franz_punz
Dec 01, 2024Copper Contributor
VBA-->Script converter
Hi all, I've many excel files containing macros, these files are shared in the cloud and macro are not "allowed". Is there a way to convert VBA in to Script? thanks in advance
- Dec 01, 2024
Unfortunately, there is no way to convert VBA macros to Office Scripts automatically. You'll have to rewrite your macros in Office Scripts.
Kidd_Ip
Dec 02, 2024MVP
May consider to rewrite:
VBA Code:
Sub HelloWorld() MsgBox "Hello, World!" End Sub
Office Script:
function main(workbook: ExcelScript.Workbook) { workbook.getApplication().showAlert("Hello, World!"); }