4

I have an Excel file that opens up with a Macro tab with a code that doesn't seem to be VBA. When enabling the macros warning in excel it formats the file as per the macro.

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

1
  • That is deffinitelly not a macro. They seem to be reference formulas for a macro, have you found any code in the Visual Basic editor? try opening it with alt+f11 Commented Sep 13, 2017 at 8:19

2 Answers 2

4

It's an old Excel 4 macro, from before there was a VBA editor. 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. 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

And:

Migrating Excel 4 Macros to VBA

If you want to try to work with the Excel 4 macro, you can get a help file (from Microsoft) Here.

Sign up to request clarification or add additional context in comments.

Comments

2

Wow. This takes me back. It's the pre-1997 way of coding macros, before Microsoft Excel 19971.

Lotus 1-2-3 pioneered it. Are you sure the workbook didn't begin life as a 1-2-3 spreadsheet?

Naturally you ought to attempt to port such stuff to newer technologies despite Excel still supporting in-worksheet macros.

There are a few conversion tools dotted around the internet. See http://www.xlhelp.com/Excel/Lotus.htm for example.


1Which, in my humble opinion, was at the time the best application ever written.

3 Comments

That threw me.. it just looked like a normal sheet calling UDF's.. but you are absolutely right.. I had forgot about the old lotus format :). Good shout!
The files are produced by Oracle BI Discoverer 11g. Hopefully the new versions of Oracle will be a bit more updated with the macros
@Selrac: Indeed. And note the other answer (that I've upvoted) is more truthful than this one, even after my cheeky edit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.