Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange problem...

Status
Not open for further replies.

Glutus

Programmer
Jul 13, 2001
27
0
0
SE
Hi,

I've created a dll in c# that works fine, but when I make changes and try to recompile, the dll is 'used by another process'. I use the dll in Excel by adding a reference in VBA to the .tlb file. My question is, is there a way to kill the process once I've used it? Sample code:

Sub test()
Dim x As ExcelDLL.TestExcelDLL
Set x = New ExcelDLL.TestExcelDLL
Range("b2").Value = x.Dummy(2)
End Sub
 
Hi,
Code:
Sub test()
   Dim x As ExcelDLL.TestExcelDLL
   Set x = New ExcelDLL.TestExcelDLL
   Range("b2").Value = x.Dummy(2)

  Set x = Nothing
End Sub

Skip,
[sub]
[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue][/sub]
 
WOW, I knew it was simple. It works fine. Thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top