On 1/27/08 3:53 PM, in article ee8ad7c.3 DeleteThis @webcrossing.caR9absDaxw, "Halibut"
<Halibut> wrote:
> Ah. Yes. There is this problem with conversion, and yes I know it won't be
> simple. But I'll leave this to ponder from the MS Office 2008 page on what
> what to do if your VBA macros don't run:
>
> " Solution: Save the macro in another macro-enabled file format.
> Macros are preserved when you save a file in any of the macro-enabled file
> formats, even if you've made changes to the contents of the file.
> In the This file contains Visual Basic macros alert that appears in Office
> 2008 when you open a file that contains a Visual Basic macro, click Open.
> On the File menu, click Save As.
> On the Format pop-up menu, select one of the following macro-enabled file
> formats.
> Excel Macro‑Enabled Workbook (.xlsm)
> Excel Macro‑Enabled Template (.xltm)
> Excel Binary Workbook (.xlsb)
> Excel Add‑In (.xlam)
> Excel 97‑2004 Workbook (.xls)
> Excel 97‑2004 Template (.xlt)
> Excel 97‑2004 Add-In (.xla)"
>
> Maybe they are great programmers but have a bit of trouble with the English
> language.
>
> Thanks for all the comments.
We’re not too bad with the English Language. The problem is correctly
interpreting ambiguous posts. Upon rereading your original posts, I can
offer:
- VBA macros will not work in Excel 2008.
- Excel 2008 WILL open workbooks containing VBA macros. It will completely
ignore them, AND save the macros untouched when the workbook content is
altered and saved IF you ask it to do this when the file is opened.
- There is NO automatic conversion from VBA to XLM Macros
- Old XLM macros WILL work, and new XLM macros can be written, modified and
used in Excel 2008
- Your expectation that VBA macros can be converted by opening the workbooks
in Excel 2007 and saving them in the new XML file formats and then reading
them into Excel 2008 is wrong. The workbooks should be fine, but the macros
will not be converted and will not work in Excel 2008.
--
Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom
>> Stay informed about: Converting VBA macros to XML with Excel 2007?