简体   繁体   English

Excel宏非VBA

[英]Excel macro non VBA

I have an Excel file that opens up with a Macro tab with a code that doesn't seem to be VBA. 我有一个Excel文件打开,其中宏选项卡的代码似乎不是VBA。 When enabling the macros warning in excel it formats the file as per the macro. 在excel中启用宏警告时,它会根据宏格式化文件。

What type of code is this? 这是什么类型的代码? Does anyone know where I can get more information how how to code this type of macros? 有谁知道我在哪里可以获得更多信息如何编码这种类型的宏?

See below what this the code for this macro looks like: 请看下面这个宏的代码是什么样的:

ExcelNonVBAMacro

It's an old Excel 4 macro, from before there was a VBA editor. 这是一个旧的Excel 4宏,从之前有一个VBA编辑器。 It is still supported in the latest excel versions - right-click on the "sheet tabs" in an excel workbook, hit "insert", and one of the options in the dialog is to insert an MS Excel 4.0 Macro . 最新的Excel版本仍然支持它 - 右键单击​​Excel工作簿中的“工作表选项卡”,点击“插入”,对话框中的一个选项是插入MS Excel 4.0 Macro Select that, and it will insert a sheet that looks like a worksheet, but allows macros like this. 选择它,它将插入一个看起来像工作表的工作表,但允许这样的宏。

Some useful links on migrating them: 有关迁移它们的一些有用链接:

Working with Excel 4.0 Macros 使用Excel 4.0宏

And: 和:

Migrating Excel 4 Macros to VBA 将Excel 4宏迁移到VBA

If you want to try to work with the Excel 4 macro, you can get a help file (from Microsoft) Here . 如果您想尝试使用Excel 4宏,可以在此处获取帮助文件(来自Microsoft)。

Wow. 哇。 This takes me back. 这让我退缩了。 It's the pre-1997 way of coding macros, before Microsoft Excel 1997 1 . 它的编码宏的前1997年的方式,Microsoft Excel将1997年1之前。

Lotus 1-2-3 pioneered it. 莲花1-2-3开创了它。 Are you sure the workbook didn't begin life as a 1-2-3 spreadsheet? 您确定该工作簿不是以1-2-3电子表格开头的吗?

Naturally you ought to attempt to port such stuff to newer technologies despite Excel still supporting in-worksheet macros. 尽管Excel仍然支持工作表宏,但你自然应该尝试将这些东西移植到更新的技术上。

There are a few conversion tools dotted around the internet. 互联网上点缀着一些转换工具。 See http://www.xlhelp.com/Excel/Lotus.htm for example. 例如,请访问http://www.xlhelp.com/Excel/Lotus.htm


1 Which, in my humble opinion, was at the time the best application ever written. 1在我看来,这是当时最好的应用程序。

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

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