VB Script not working RRS feed

  • Question

  • VB Script is not working when I code them inside a Sub Procedure or Function. If I place the code without a Sub Procedure or Function it works.

    I am working on Windows 7 Enterprise Edition

    Could some one help me understand this?

    • Edited by Mahesh260283 Sunday, December 24, 2017 6:49 AM Spell Check
    • Moved by Bill_Stewart Friday, January 26, 2018 3:46 PM Unanswerable drive-by question
    Sunday, December 24, 2017 6:48 AM

All replies

  • There is not enough information to understand what you are asking.

    Code in a function to sub must be called.

    You should not be suing VBScript as it is obsolete and is scheduled to be removed from Windows.  PowerShell is the current supported scripting system.


    Sunday, December 24, 2017 8:53 AM