Excel/Access Macros work on Windows 98 but not Windows 2000

ktwc

New Member
Joined
Apr 23, 2002
Messages
3
I've recently updated to Windows 2000 and have found a problem that stops Microsoft Excel from working. The macros were written on a Windows 98 platform for Office 97 using Office 8.0, Access 8.0 and Excel 8.0 Obkect Libraries, OLE, & Visual Basic for Applications Libraries. The macro starts in Excel, links to Access for some SQL work then back to Excel.

Now that I've upgraded to Windows 2000 I ran the macro, it worked twice then Excel wouldn't start. Even from a reboot it still displayed the same error message and would not start.

Could Office be affected to this degree just by running a macro?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi
What is your error and post your code as well.
Excel does not start at all?
Or just the macro?
Thanks,
Tom
 
Upvote 0
I've solved my problem. The Windows API is different for Windows 98 and Windows 2000. The macros were originally developed on Windows 98 and so the compiled code uses Windows 98 API. When the same macros are tried on Windows 2000, the API is different and so the code doesn't run correctly and causes unforseen problems.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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