将 MS Word 2002 模板从 PC 转换为 Mac
我必须转换数百个 MS Word 2002 模板(在 PC 上)才能在 Macintosh 上使用。我必须评估Word 模板是否可以在iWork Pages 和Mac 版Microsoft Word 中运行。
我无法转换以下内容:
- Word VBA
- WordBasic 代码
- Visual Basic
这里有人完成了此操作并可以提供任何建议吗?
I have to convert several hundred MS Word 2002 Templates (on the PC) to work on the Macintosh. I have to evaluate whether the Word Templates can be run in iWork Pages and Microsoft Word for the Mac.
I am unable to convert the following:
- Word VBA
- WordBasic code
- Visual Basic
Has anyone here done this and can provide any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iWork 会很困难,但 Word for Mac 是可行的。它还取决于 Word for Mac 的版本 - Office 2008 版本没有 VBA,只有 AppleScript。据说 VBA 将在更高版本的 Mac Office 中回归。如果您打算执行此操作并将所有模板移至 Mac,并且不再在 Windows 上使用它们,那么将内容移植到 AppleScript 将是最佳选择。如果您打算将它们保留在 PC 和 Macintosh 上,那么坚持使用 VBA 是最佳选择(但不适用于 Mac Office 2008!)。
首先,宏可以是 WordBasic 或 VBA(Visual Basic for Applications)——它们不会是 Visual Basic,因为它在 Word 环境之外(尽管 Word 可以从 VB 自动化)。宏只是用 WordBasic 或 VBA 编写的一个或多个例程。 WordBasic 确实非常非常老,而且用得不多,因此大部分转换可能来自 VBA。
无论如何,您都需要将 WordBasic 转换为 VBA 或 AppleScript。以下文章显示了一些转换:http://www.standards.com/OhMyWord/ExampleWB2VBA。 html
如果您在 Mac Word(不是 2008!)上运行 VBA,则几乎所有内容都应该可以正常工作。有一些事情需要改变,比如你如何使用文件和目录,但仅此而已。
如果你想转换成AppleScript,需要做一些工作。 http://www.mactech.com/vba 上有一个很好的过渡指南-transition-guide/index.html(您必须订阅才能获取)。
iWork would be very difficult, but Word for Mac is doable. It also depends on which version of Word for Mac - the Office 2008 version doesn't have VBA, only AppleScript. It's said that VBA will be back in later versions of Mac Office. If you're going to do this and move all the templates to Mac and not use them on Windows again, porting things to AppleScript would be the way to go. If you're going to leave them on both PC and Macintosh's, sticking with VBA is the way to go (but not on Mac Office 2008!).
The first is that Macros can be either WordBasic or VBA (Visual Basic for Applications) - they won't be Visual Basic as that is outside of the Word environment (although Word can be automated from VB). Macros are just one or more routines written in WordBasic or VBA. WordBasic is really, really old and not used much, so the majority of your conversion will probably be from VBA.
No matter what, you'll want to convert out of WordBasic into either VBA or AppleScript. Here's an article that shows some conversions: http://www.standards.com/OhMyWord/ExampleWB2VBA.html
If you're running VBA on Mac Word (not 2008!), almost all of it should work just fine. There are a few things to change, like how you work with files and diretories, but not much more than that.
If you want to convert to AppleScript, it takes a bit of work. There is a good transition guide on http://www.mactech.com/vba-transition-guide/index.html (you have to subscribe to get it).