R
Richard
Hi
I am trying to use the excel workday function within my VBA code as follows:
Dim Today As Date
Dim PrevWrkDay As Date
Today = Now()
PrevWrkDay = application.worksheetfunction.workday(today, -1)
I get a runtime error '438' - Object doesn't support this property or method
Can you please advise if I can get around this, without having to refernce a
cell in the spreadsheet.
Thanks in Advance
Richard
I am trying to use the excel workday function within my VBA code as follows:
Dim Today As Date
Dim PrevWrkDay As Date
Today = Now()
PrevWrkDay = application.worksheetfunction.workday(today, -1)
I get a runtime error '438' - Object doesn't support this property or method
Can you please advise if I can get around this, without having to refernce a
cell in the spreadsheet.
Thanks in Advance
Richard