简体   繁体   English

Excel VBA无法在Mac上运行

[英]Excel VBA not working on Mac

I have written some code in Excel 2007 and tried to run it on a Mac with Excel 2008. The procedure is linked to a control button on the sheet, and there was a similar discussion going on here: Excel vba to mac 我已经在Excel 2007中编写了一些代码并尝试在带有Excel 2008的Mac上运行它。该过程链接到工作表上的控件按钮,这里有类似的讨论: Excel vba to mac

However, in my case this does not seem to be the exact same problem. 但是,在我的情况下,这似乎不是完全相同的问题。 When I open the file on Mac, Excel recognises that a macro exists (it gives the option to open the file with macros disabled). 当我在Mac上打开文件时,Excel识别出存在一个宏(它提供了在禁用宏的情况下打开文件的选项)。 When I click the control button to run the macro, Excel DOES recognise that this is not just a picture but an actual control button (main difference to the problem in the thread I posted above) and then tells me that the associated macro called 'Main' cannot be found. 当我单击控制按钮来运行宏时,Excel会识别出这不仅仅是一张图片而是一个实际的控制按钮(我上面发布的帖子中的问题的主要区别)然后告诉我相关的宏叫做'Main '无法找到。

Unfortunately I just read the issue with ActiveX vs. Form buttons (discussed in the thread I posted above) only now, and I do not have access to a Mac at the moment. 不幸的是,我刚刚阅读了ActiveX与表单按钮的问题(在我上面发布的帖子中讨论过),目前我还无法访问Mac。 Otherwise I would test whether that solves it; 否则我会测试是否能解决它; however from the thread above I understand that the problem presented itself in a different way. 但是从上面的帖子我明白问题以不同的方式呈现。 Any ideas? 有任何想法吗?

Unfortunately, Excel 2008 doesn't support VBA. 不幸的是,Excel 2008不支持VBA。 The 2004 and 2011 versions do though. 2004年和2011年的版本确实如此。

http://en.wikipedia.org/wiki/Microsoft_Excel#VBA_programming http://en.wikipedia.org/wiki/Microsoft_Excel#VBA_programming

Mac Excel 2008: Macros? Mac Excel 2008:宏?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM