如何将Excel-VBA从Windows转换为MAC?

我想运行下面的macros,在Mac上的Excel中运行良好的Windows。 macros保存ActiveWorkBook (在一个特定的目录),并通过电子邮件发送。

 Sub SauveEnvoi() Dim file As String Application.DisplayAlerts = False file = Macros.Cells(4, 2).Value & Macros.Cells(1, 2).Value ActiveWorkbook.SaveAs file Application.DisplayAlerts = True Application.Dialogs(xlDialogSendMail).Show Macros.Cells(2, 2).Value, Macros.Cells(3, 2).Value SetAttr file, vbReadOnly Application.Quit End Sub 

从下面的评论

Macros.Cells(4, 2)等于C:\LPO Solutions\Commandes OGY\
Macros.Cells(1, 2)等于CDE.xlsm
Macros.Cells(2, 2)等于xxxx@yyyy.fr
Macros.Cells(3, 2)等于Commandes