Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
diego_vazquez
Contributor III
Contributor III

Monday to Friday

Hi everyone.

My problem is that I have an Auto Selection when I open the document, that selects the previous day automatically and a macro send the report also automatically. The problem is that when the weekend is the previous day, the auto select have no data, and the report is not sent correctly.

My question is if is there any code to auto select the friday when is monday,insted the sunday so I dont have to re-send the reports manually every week.

Thanks in advance

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use

=FirstWorkDate(Today()-1,1)

to retrieve the previous working day.

View solution in original post

5 Replies
andrespa
Specialist
Specialist

Hi Diego, I think that if you modified your macro code you could achive this. Could you please post the macro code to have a look.

Cheers,

Andrés

swuehl
MVP
MVP

Use

=FirstWorkDate(Today()-1,1)

to retrieve the previous working day.

diego_vazquez
Contributor III
Contributor III
Author

Thank you very much swuehl, that worked!

swuehl escribió:

Use

=FirstWorkDate(Today()-1,1)

to retrieve the previous working day.

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer.

If not, please make clear with what part of your question you still need help .

May you live in interesting times!
diego_vazquez
Contributor III
Contributor III
Author

thank you for the advise!