How to use excel functions in macros?
I want to extract the month out of date format:
k = Application.WorksheetFunction.Month(Selection.Value)
Should this not work?
When a worksheet function like MONTH has an exact equivalent native to VBA then its not available through Application.WorksheetFunction and you have to use the native VBA function as Siddarth has shown