application.run, macro cannot be found when saved from W7 64 bit and opened in XP 32 bit

Dave96

New Member
Joined
Oct 7, 2013
Messages
1
From a VB.NET application I start a macro in an Excel file (Windows XP, Excel 2003).


Code:
Dim excAppl As Microsoft.Office.Interop.Excel.Application = Nothing
Dim excWrkb As Microsoft.Office.Interop.Excel.Workbooks = Nothing
excAppl = New Microsoft.Office.Interop.Excel.Application
excWrkb = excAppl.Workbooks
excWrkb.Open(fileName, True, True)
excAppl.Run("Genereer", parm1, parm2, parm3)

This works without a problem.
The file is stored on a network share.
When I open, save and close this Excel file from a (my) Windows 7 (64 bit) computer using the same version of Excel, the VB.NET app doesn't work any more on the XP computer. I get the error macro 'genereer' cannot be found. When starting the same app from the Windows 7 (64 bit) computer it does work.
When I manually open, save close the same Excel file using Excel on a 32 bit Windows computer it again does work. Macro security settings are already low on the computer running the app.
Windows 7 compatibility mode also doesn’t solve it; I tried XP SP3 mode and W2000 mode.
Possible solutions would be to install a virtual (32 bit) XP on my computer or upgrade the old XP computer to some 64 bit Windows version however for now I’m still looking if there is a better solution.
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Watch MrExcel Video

Forum statistics

Threads
1,122,729
Messages
5,597,795
Members
414,176
Latest member
LK88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top