You can get the Gamma function indirectly by using the natural log of Gamma--the natural log of the Gamma function is built-in within Excel. Here is a function returning the natural log of the Gamma function. There is also the WorksheetFunction GammaLn that can get you there.
Function gammaln2(xx As Double)
' Returns the natural log of the Gamma Function
' Is equivalent to Application.WorksheetFunction.GammaLn
Dim ser As Double, stp As Double, tmp As Double, x As Double, y As Double
Dim cof(6) As Double
Dim j As Integer
cof(1) = 76.1800917294715
cof(2) = -86.5053203294168
cof(3) = 24.0140982408309
cof(4) = -1.23173957245015
cof(5) = 1.20865097386618E-03
cof(6) = -5.395239384953E-06
stp = 2.506628274631
x = xx
y = x
tmp = x + 5.5
tmp = (x + 0.5) * Log(tmp) - tmp
ser = 1.00000000019001
For j = 1 To 6
y = y + 1#
ser = ser + cof(j) / y
Next j
gammaln2 = tmp + Log(stp * ser / x)
End Function