VBA and CreateObject("Wscript.Shell")

jstevens
GoldLounger
Posts: 2628
Joined: 26 Jan 2010, 16:31
Location: Southern California

VBA and CreateObject("Wscript.Shell")

Post by jstevens »

I had to reimage my laptop and now code that once use to work doesn't. I'm not sure if its a "reference' in the VBA Project Explorer or something else.

Code: Select all

Set objShell = CreateObject("wscript.Shell")

objCommand = Some code

objShell.Run (objCommand)
Any assistance would be appreciated.
John
Last edited by HansV on 30 Apr 2010, 16:13, edited 1 time in total.
Reason: to remove duplicate [code]...[/code] tags.
Regards,
John

jstevens
GoldLounger
Posts: 2628
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: VBA and CreateObject("Wscript.Shell")

Post by jstevens »

Never mind... I just rebooted and everything is working as it should.

Is there a full-moon?

Regards,
John
Regards,
John