Results 1 to 5 of 5
  1. #1
    RMittelman is offline Advanced
    Windows 10 Access 2016
    Join Date
    Dec 2010
    Location
    Simi Valley, CA
    Posts
    217

    VBScript Being Deprecated

    So I'm getting emails saying Microsoft is not only depricating VBScript, but eventually removing it entirely, and suggesting JavaScript or Powershell. I use VBScript extensively, either stand-alone or by referencing Microsoft Scripting Runtime, Microsoft VBScript Regular Expressions, and/or Winows Script Host Object Model.



    I'm guessing that once VBScript is gone, those references won't work either. If so, how to replace that functionality in my Access projects? I guess I could write a bunch of code in VBA, put it in a project, and reference that project from my other projects in lieu of the above references.

    Any suggestions? Thanks...

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    There is a discussion about this here:
    https://www.access-programmers.co.uk.../#post-1921324

    Along with other planned changes that may stop things working in the long term
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    RMittelman is offline Advanced
    Windows 10 Access 2016
    Join Date
    Dec 2010
    Location
    Simi Valley, CA
    Posts
    217
    Quote Originally Posted by Minty View Post
    There is a discussion about this here:
    https://www.access-programmers.co.uk.../#post-1921324

    Along with other planned changes that may stop things working in the long term
    Thanks Minty. The article wasn't extremely helpful, but it mentioned this article: https://techcommunity.microsoft.com/...s/ba-p/4148301

    That contained a comment from Microsoft:

    Naveen_Shankar
    Microsoft

    ‎May 23 2024 09:44 AM

    @empi_ml, @nolongerset - The scope of VBScript deprecation includes only vbscript.dll and no other libraries. This shall not impact any projects that are not dependent on vbscript.dll.

    The VBA team is committed to provide more updates around the alternatives/new developments soon. Stay tuned for further information

    This is encouraging. Perhaps references to VBScript.dll can be removed from VBA projects and the actual objects needed could be used instead?

    The main challenge I see is if you use regular expressions in your VBA projects. The References entry "Microsoft VBScript Regular Expressions 5.5" points directly to vbscript.dll.

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Isn't MS Scripting Runtime library scrrun.dll, so that is not the same? I'm assuming most people who use scripting are using that and not VBScript.dll. I can't even find a reference that points to vbscript.dll
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    RMittelman is offline Advanced
    Windows 10 Access 2016
    Join Date
    Dec 2010
    Location
    Simi Valley, CA
    Posts
    217
    You are correct to a point. Scripting Runtime uses scrrun.dll but if you need regular expressions the reference points to vbscript.dll. Try adding that to a project and you'll see the file name.

    When that's gone how do we do regex?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Automating Word from VBScript
    By RMittelman in forum Programming
    Replies: 6
    Last Post: 08-28-2023, 03:43 PM
  2. VBscript. combining Getfile with Oshell.Environment
    By redbull in forum Programming
    Replies: 1
    Last Post: 03-22-2016, 10:19 AM
  3. vbscript open access db and execute sub
    By Auto in forum Programming
    Replies: 1
    Last Post: 04-22-2015, 01:29 PM
  4. Replies: 4
    Last Post: 10-03-2014, 12:27 PM
  5. Replies: 2
    Last Post: 09-15-2014, 01:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums