+ Reply to Thread
Results 1 to 3 of 3

WScript.Shell Not Working Under Excel 2013

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    2

    WScript.Shell Not Working Under Excel 2013

    B"H

    Good morning,

    I have been using the WScript.Shell object in order to execute java applications with sending parameters (various strings). Example:

    Please Login or Register  to view this content.
    As the office I work in has updated to Excel 2013, I learned that this object is not working. Generates Run-time error '-2147024894 (80070002) The system cannot find the file specified.

    Does anyone have a clue as how this problem can be fixed or worked around?

    Thank you very much - in advance

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: WScript.Shell Not Working Under Excel 2013

    Welcome to the forum!

    I would use Dir(filepath/filename)<>"" first to see if the file exists before using it like that.

    Otherwise, I suspect it is the Microsoft Scripting Runtime object issue. http://colinlegg.wordpress.com/2012/...untime-errors/

  3. #3
    Registered User
    Join Date
    11-23-2012
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: WScript.Shell Not Working Under Excel 2013

    Thanks for your reply. I tried following the article you quoted, but it bore no success with the issue.
    I resolved it eventually. I tried running the same VBA code under a different user account, and it ran perfectly. So I deleted all of Excel's user information from both the registry and the appdata folder. When I started Excel it ran the installation configuration wizard, and it worked great.

    Kind regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-03-2013, 04:32 PM
  2. [SOLVED] CreateObject("WScript.Shell").Popup
    By MyComputerGuy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2012, 09:18 AM
  3. Replies: 4
    Last Post: 05-07-2012, 07:13 PM
  4. CreateObject("Wscript.shell").exec
    By frogboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2012, 09:39 AM
  5. using WScript.CreateObject(&amp;quot;Wscript.Shell
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2005, 02:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1