Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi all,
im running a macro which sets dns names for all the clients. it takes the input from the excel sheet. whil executing i got this run time error. Got Run-Time error: - 2147024894(80070002) Method 'Run' of object 'IWshShell3' failed how wshould i go about it? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
No one will reply to this. What have they got to go on?? regards Paul |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ooopsss....im sorry folks....
here is the snippet.... ----------------------------------------------------------- Set objWSH = CreateObject("WScript.Shell") ------------------------------------------------------- sCmd = "DNSCMD " & strDNSServer & " /recordadd " & strDNSZone & " " & strAlias & " " & strtype & " " & strIPAddr LogToLog "running:" & sCmd lRet = objWSH.Run(sCmd, 0, True) If lRet = 0 Then LogToLog "successfully created DNSAlias " & strAlias & " for IP-address " & strIPAddr & " on " & strDNSServer & "." & strDNSZone & "." Else LogToLog "*** !!! Error by DNSAlias creation " & strAlias & " for IP-address " & strIPAddr & " on " & strDNSServer & "." & strDNSZone & "." lCountErrors = lCountErrors + 1 End If LogToLog "" ---------------------------------------------------------------------------- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) | Excel Programming | |||
Run-time error '11' & Run-time error '1004' | Excel Programming |