Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Run Time Error "424' Object Required Error

$
0
0
Sub Button1_Click()
Dim WshShell As Object
Set WshShell = CreateObject(“WScript.Shell”)
WshShell.LogEvent
Set WshShell = Nothing


End Sub

I get error at set wshShell = CreateObject("WScript.Shell") (Run Time Error "424'  Object Required Error). Can anyone explain to me why the error occur and way to overcome it.

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>