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.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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
Back
Top