I have :
I want to pass that through a function that fills in the rest of the information into the spreadsheet depending on if its a leap year or not.
currently :
I am getting object doesn't support this property or method.
My function titles are:
and:
Code:
Set xlApp = CreateObject("Excel.Application")
Set xlWB = xlApp.Workbooks.Add
Set xlSh = xlWB.ActiveSheet
I want to pass that through a function that fills in the rest of the information into the spreadsheet depending on if its a leap year or not.
currently :
Code:
If Year(Date) Mod 4 = 0 Then
Leap (xlSh)
Else
Calendar (xlSh)
End If
My function titles are:
Code:
Public Function Calendar(xlSh As Object)
Code:
Public Function Leap(xlSh As Object)