Thank you! It works perfectly. It didn't occur to me to use AddDays and then use a minus in front of the number of days... Learn something new every day!
------------------------------
Johanna Westlund
RPA manager
MAIK AS
/Norway
------------------------------