Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unable to call external program/dll


Bah, bah!

After having searched all settings in Windows, Office, Excel, and
Visual Basic (and all of them at least three times each) I finally had
the bright idea to check what the firewall and anti-virus programs are
capable of at the "faulty" computer.

It was the virus scanner that blocked my excel macro.

So, just for the records (in case someone else would search for help on
this problem in the future):

I wanted to start another application from within an excel/vba macro.
The "Shell" command did not work. Using "ShellExecute" from shell32.dll
did not work. Actually it was not possible to call any external finction
in any dll. All this worked perfectly well on an older computer (with
older software) but not on a newer computer (with newer software).

Recent versions of Kaspersky's anti-virus scanner (and most likely
other virus scanners as well?) uses real-time vba macros monitoring. It
can block a command or abort a macro that tries to use shell commands,
windows api calls, delete files and directories, and so on, and so on.


--
pipo
------------------------------------------------------------------------
pipo's Profile: http://www.excelforum.com/member.php...o&userid=23750
View this thread: http://www.excelforum.com/showthread...hreadid=374121

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inadvertant Program Call Jim Berglund Excel Programming 2 November 20th 04 04:55 AM
Call a program from Save As dialog Gungmas Excel Programming 2 October 8th 04 08:57 AM
Call from a Main program Haim[_2_] Excel Programming 4 September 24th 04 08:09 PM
External function call Kevin Excel Programming 1 April 6th 04 06:35 AM
API call to check other program is idle Keith Willshaw Excel Programming 0 August 15th 03 01:41 PM


All times are GMT +1. The time now is 11:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"