Eomonth in Excel -


how can use function in user defined function ? cannot reference cell.

function sonxmonth()    sonxmonth = eomonth(a1,0) + 1 end func 

you need use worksheetfunction used container microsoft excel worksheet functions can called visual basic.

function sonxmonth() sonxmonth = worksheetfunction.eomonth(range("a1"), 0) end func


Comments

Popular posts from this blog

c# - Where does the .ToList() go in LINQ query result -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -