+ Reply to Thread
Results 1 to 5 of 5

Not able to run Javascript in Excel VBA

  1. #1
    Registered User
    Join Date
    03-18-2022
    Location
    guatemala
    MS-Off Ver
    365
    Posts
    4

    Not able to run Javascript in Excel VBA

    I am trying to run Javascript code inside Excel VBA...

    I did add the "Microsoft Script Control 1.0" library...
    When I run this code:
    Dim vbsObj As New ScriptControl
    vbsObj.Language = "JScript"

    the execution stops in line 2 with error:
    "Runtime error 2147221164 (80040154) Class not registered"

    I have also run command line: Regsvr32.exe "C:\Windows\SysWOW64\msscript.ocx"
    and it registers successfully but the error continues to show.
    Any insights? is there other way to run Javascript? thank you.

  2. #2
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Not able to run Javascript in Excel VBA

    As far as I know this is a 32-bit COM addin and only works Windows 32-bit.

  3. #3
    Registered User
    Join Date
    03-18-2022
    Location
    guatemala
    MS-Off Ver
    365
    Posts
    4

    Re: Not able to run Javascript in Excel VBA

    thanks mogul for your answer ... does this mean I can only run Javascript in a Win32 ? I really cant believe this is not possible in Win64. Is there another way of doing this?

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Not able to run Javascript in Excel VBA


    Hi,

    try in late binding mode so without the need of any additional reference like in this thread
    and in case of same result then this ActiveX can't work under Excel 64 bits version like many other …

  5. #5
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Not able to run Javascript in Excel VBA

    Why do you need to run Javascript. Javascript runs in a browser.

+ 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. [SOLVED] How to enable javascript in Excel?
    By CC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2020, 11:56 PM
  2. Excel to Embed to Web (HTML/Javascript)
    By makingtrails in forum Excel General
    Replies: 0
    Last Post: 02-05-2014, 07:09 AM
  3. Convert Excel to HTMl & JavaScript
    By wcdunn in forum Excel General
    Replies: 3
    Last Post: 12-03-2013, 06:39 AM
  4. Converting Javascript to Excel VBA
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 01:52 PM
  5. Html with javascript on Excel
    By bhangale.parag in forum Excel General
    Replies: 0
    Last Post: 02-06-2009, 03:34 AM
  6. How can I call a JavaScript Function from Excel VBA
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2006, 10:40 AM
  7. Help: Javascript to Excel VBA?
    By Ron J in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2006, 10:40 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