Excel automation not working

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I have a workbook that was created about two years ago, which creates some sql files, each with a corresponding bat file to execute the sql. Recently, the server which the workbook is located, was upgraded from 2003 to 2008 (Windows). Now, the files are still created, but the bat file is not ran.

I am using the following to execute the bat files:
Code:
Call Shell(objFile, vbHide)

If I step through the code for this execution of the bat file, everything works fine, but it fails to work if I simply let the program run automatically.

Any ideas?

NOTE: I thought about the automation running to fast and included a wait timer, but it still failed to run the bat files.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Pretty sure it's not an Excel problem.

Do you know if the upgrade could have changed anything so that this sort of thing doesn't work anymore?

Perhaps some sort of security/access/permission thing?

Perhaps something that was set in the old version has been 'reset' in the new version?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,290
Members
452,902
Latest member
Knuddeluff

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