Thursday, May 8, 2008

I can count my day!!

Yesteday, I was working on using some external dll to run with excel macros. Although it took a couple hours for googling, it is quite straight forward..

'VBA code
Declare Function Ding Lib "Project1.dll" Alias "HelloWorld" _
() As Integer

Sub dong()
Dim a As Integer
a = Ding()
End Sub
Post a Comment