View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ardus Petus Ardus Petus is offline
external usenet poster
 
Posts: 718
Default set Object = Nothing

I see quite often Excel Sub's with following code

Sub mySub()
Dim myObject as Object
set myObject = CreateObject("www.xx")
...
(some code)
...
set myObject = Nothing
end Sub

What is the use of setting a local variable to Nothing, as it will be
destryed by End Sub ?

Cheers,
--
AP