EDITED
My company used VBScript and IE to create popups for gathering and displaying information. Now that IE is going away, we can't do this in Edge. We're looking for a way to use HTA embedded in VBScript like we did with IE. Here's what we currently have:
Function Create_Display(File_Path)
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "about:blank"
Win_Title = "GROUP TYPE " & MyArray(3) & " FOUND"
objIE.Document.body.innerHTML = "<title>" & Win_Title & "</title><p class='msg'>Group Type " & MyArray(3) & " Returned for TIN: <span>" & _
TIN & "</span></p><table border=0><tr><th>Seq#</th><th>Group Name</th><th>Group NPI</th><th>MPIN</th><th>Group Type</th><th>Group Start Date</th><th>Group Term Date</th><th>Network Start Date</th><th>Network Term Date</th><th>Network ID</th></tr><tr><td>" & List & _
"<p class='ctrl'><input type='hidden' id='Submit' name='Submit' value='0'><input type='submit' value='OK' id='SubmitButton' onclick='document.all.Submit.value=1' autofocus></p>"
Set Style = objIE.Document.CreateStyleSheet
Style.AddRule "p.msg", "font-family:calibri;font-weight:bold;text-decoration:underline;color:black;"
Style.AddRule "p.not", "font-family:calibri;color:black;"
Style.AddRule "p.ctrl", "text-align:center;"
objIE.Visible = True
objIE.Document.all.Submit.Focus
Do Until FormExit = "GO"
If objIE.Document.all.Submit.Value = 1 Then
objIE.Quit
Exit Function
End If
Loop
End Function
The above code will produce a popup like this:
Since we will no longer be able to use objIE
to interact with IE, we are looking for a way to embed HTA in the same manner. If HTA cannot be embedded, can we do something similar with WSH?
Example:
set objShell = CreateObject("shell.application")
objShell.Navigate "about:blank"