Link to home
Start Free TrialLog in
Avatar of Thrawn3000
Thrawn3000Flag for Australia

asked on

vba code to determine the full end of month date given the month and year


Hi Experts
I need to use vba code to determine the end of month date given the month and year
example:  09/10  is 30/09/2010   or 10/10 is 31/10/10.


Thanks
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thrawn3000

ASKER

HI matthewspatrick
Thank you does excatly what I need it to do

cheers

assuming your month/year variable is xVar


LastDay=dateserial(Int("20" & split(xVar,"/")(1),Int(split(xVar,"/")(0) + 1,0)