Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


IT-Lizenzmanagement
2014-01-21T15:51:25Z
I got the following error message if I run a Excel macro in a "Office macro task" :

System.Runtime.InteropServices.COMException (0x800A0C4E): Exception from HRESULT: 0x800A0C4E
at Microsoft.Office.Interop.Excel._Application.Run(Object Macro, Object Arg1, Object Arg2, Object Arg3, Object Arg4, Object Arg5, Object Arg6, Object Arg7, Object Arg8, Object Arg9, Object Arg10, Object Arg11, Object Arg12, Object Arg13, Object Arg14, Object Arg15, Object Arg16, Object Arg17, Object Arg18, Object Arg19, Object Arg20, Object Arg21, Object Arg22, Object Arg23, Object Arg24, Object Arg25, Object Arg26, Object Arg27, Object Arg28, Object Arg29, Object Arg30)
at OJCqt5bIpNcr6Gr18c.g7HkBY3vXAHNmWW793.o59VdTW0s() - maybe Microsoft Office is not installed? This Task requires Microsoft Office being installed.


Excel 2003 SP3 is installed on a Windows 2008 Server. Does anyon know what the problem can be?

Thank you very much.

Rainer
Sponsor
Forum information
Support
2014-01-21T16:08:28Z
Does it help if you switch the 32/64 bit mode?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
IT-Lizenzmanagement
2014-01-22T08:30:36Z
Yes, I tried to switch between 32/64bit.

I also used the following hint in the help:


1. Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop " (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop" (for 32 bit Windows)

2. Set Full control permissions for directory Desktop (for user "SYSTEM")

Please do this for both 32 and 64 bit folder.



Best regards
Rainer
Support
2014-01-22T13:00:36Z
Please try resolution from post #5 here:

http://www.visualcron.co....aspx?g=posts&t=3711 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
IT-Lizenzmanagement
2014-01-22T13:17:11Z
Thank you for your reply.

Yes, I searched this option:
"Open Excel and mark in Trust Center Options the Option : Activate all Macros."

But I think in Excel 2003 there is no such option.
I have set the Macro Security Level to "low" but with no success.

Have you another idea?

Thank you,
Rainer

Support
2014-01-23T14:37:00Z
No more ideas right now unfortunately.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Axel F
2014-01-24T12:48:25Z
I switch to German Language...easier for me. If it works i will translate .

Hallo probier das mal. Ne Rückinfo wäre nett .

Aktivieren der Ausführung unsignierter Makros

Wenn Sie es zulassen möchten, dass unsignierte Makros ausgeführt werden, muss im Dialogfeld Sicherheit auf der Registerkarte Vertrauenswürdige Herausgeber das Kontrollkästchen Allen installierten Add-Ins und Vorlagen vertrauen aktiviert sein. Diese Option ist in der Standardeinstellung deaktiviert. Wenn sie nicht aktiviert ist (empfohlen), wird in Excel nur das Ausführen von Makros zugelassen, die über vertrauenswürdige digitale Signaturen verfügen.

Zeigen Sie im Menü Extras auf Makro, und klicken Sie dann auf Sicherheit.
Aktivieren Sie auf der Registerkarte Vertrauenswürdige Herausgeber das Kontrollkästchen Allen installierten Add-Ins und Vorlagen vertrauen.

Quelle : http://office.microsoft....-makros-HP001119579.aspx 

Found it in english also. Have a look at Part enable unsigned Macros to run .

http://office.microsoft....-to-run-HP001119579.aspx 
IT-Lizenzmanagement
2014-01-27T08:01:29Z
Ich habe nochmal nachgesehen, die Kontrollkästchen sind alle angehakt aber die Ausführung des Makros in Visualcron geht trotzdem nicht. Vielen Dank aber für den Tipp.

Wenn ich das Makro mit einem Batchfile starte funktioniert es ja, z.B. so:

"C:\Program Files (x86)\Microsoft Office\OFFICE11\excel.exe" /e/DWH "L:\IT-Share\DWH\VM\dailyDownloads_SAC_3\test.xls"

Diese Variante haben wir auch bisher mit unserem alten Sceduler verwendet.

Da aber Visualcron das direkte Ausführen von Makros anbietet wollte ich das jetzt benutzen, geht aber leider nicht 😠 😠 😠
Axel F
2014-01-27T08:16:52Z
Das Problem ist weniger Visualcon, eher Excel 2003 meiner Meinung nach.

Bei intergrierten Makros kommen aufgrund der Sicherheitsbeschränkungen immer wieder Bestätigungsmeldungen hoch, die Visualcron nicht sauber laufen lassen und beschränken.

Ich bin aufgrund dessen von 2003 auf 2007 gewechselt und habe mir bis dahin auch mit Batch Dateien ausgeholfen.

Mit 2007 gab es zwar auch anfangs Probleme, aber das war nur Einstellungssache .

Würde dir empfehlen von 2003 auf zumindest 2007 zu wechseln .

Gruss

Axel
IT-Lizenzmanagement
2014-01-27T08:46:03Z
Danke für die Info Axel, ich werde mal 2007 testen.

Viele Grüße
Rainer
IT-Lizenzmanagement
2014-02-05T14:45:40Z
Ich habe inzwischen mit Excel 2010 getestet. Wenn ich das Excel Makro ohne Angabe eines Accounts laufen lasse kommt eine Fehlermeldung

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Microsoft Excel kann auf die Datei 'D:\test.xls' nicht zugreifen. Dies kann mehrere Grnde haben:

Ich habe nun einen Account angelegt und das Makro startet auch. Man sieht im Task Manager auch eine Excel.exe arbeiten. Allerdings scheint er irgendwo zu hängen da das Makro nicht fertig wird. Wenn ich das Makro per Hand in der GUI starte dauert es 20 sec., man sieht wie es sich durch einzelnen Zeilen arbeitet, beim Start im Scheduler bringt er keine Fehlermeldung aber er führt scheinbar den Code auch nicht aus. 😢

Axel F
2014-02-10T14:59:16Z
I have the same Issue .

It seems that Excel Macros won't work with VC on Excel 2007 and 2010.

I've made an xlsm File with a little Macro ( get sum of two cells)

VC runs, but won't execute macro. (in 64 and 32bit mode)

Settings

Task Type Office Macro

Encoding Windows-1252

local credential

I use VC 7.1.2


regards Axel
Support
2014-02-10T15:16:06Z
Originally Posted by: Citipost 

I have the same Issue .

It seems that Excel Macros won't work with VC on Excel 2007 and 2010.

I've made an xlsm File with a little Macro ( get sum of two cells)

VC runs, but won't execute macro. (in 64 and 32bit mode)

Settings

Task Type Office Macro

Encoding Windows-1252

local credential

I use VC 7.1.2


regards Axel



Please send us the macro to support@visualcron.com and let us know operative system and Office version you test with.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-02-17T08:25:23Z
Please test this version which includes more debugging:

http://www.visualcron.co....aspx?g=posts&t=3805 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top