A annapodzharova New member Jul 12, 2024 #1 Hello, I get an error when I run the following code: It seem that it can’t open the object winmgmts. Could you please tell me why?
Hello, I get an error when I run the following code: It seem that it can’t open the object winmgmts. Could you please tell me why?
gdgsupport Support Staff member Jul 15, 2024 #2 Could you try to replace line 51 with: oWMI = Application.Application.GetObject etc (yes, Application. two times)
Could you try to replace line 51 with: oWMI = Application.Application.GetObject etc (yes, Application. two times)
gdgsupport Support Staff member Jul 16, 2024 #4 gdgsupport said: Could you try to replace line 51 with: oWMI = Application.Application.GetObject etc Click to expand... Then, could you try to replace line 51 with: oWMI = CreateObject(" etc
gdgsupport said: Could you try to replace line 51 with: oWMI = Application.Application.GetObject etc Click to expand... Then, could you try to replace line 51 with: oWMI = CreateObject(" etc
A annapodzharova New member Jul 17, 2024 #5 I tried only CreateObject (no Application) and I get an error when compiling the code. Thanks. Anna.