Thema Datum  Von Nutzer Rating
Antwort
Rot Feiertagskalender - Best practice?
04.01.2016 09:38:52 Officer_Bierschnitt
NotSolved
04.01.2016 09:58:54 Gast12752
NotSolved
04.01.2016 10:31:06 Gast97120
Solved
04.01.2016 11:24:37 Officer_Bierschnitt
NotSolved

Ansicht des Beitrags:
Von:
Officer_Bierschnitt
Datum:
04.01.2016 09:38:52
Views:
940
Rating: Antwort:
  Ja
Thema:
Feiertagskalender - Best practice?

Hi,

 

a happy new year to everyone! May it bring you all you wish and hope for and/or what is best for you!

 

I have a challenge - I'm confident I would be able to come up with some solution on my own, but I wonder if there is some "Best_practice" or something for this:

 

Most macros I have written so far are used in the morning of any given work_day in various departments and they usually process data that was gathered in some list or other on the previous work_day.

=> In one dpt., there was an error today, so they reverted to doing it manually for today. Not a big thing, but then it would probably not be a big thing to avoid that need.

I haven't yet looked into that error, but my assumption is that the macro just did what it is supposed to do - it looked for the data carrying the date_stamp of the last working_day before today which happens to be last Friday like every monday - only last Friday was a public holiday, so there cannot have been any data.

=> So I'll have to implement some little routine - m.o.l. only a MATCH() function - to process a list of public holidays for the current year and whenever the last
      working_day was a holiday, then the macro should go back one day more.

Now, as this will be needed in all the macros I have written so far and in every macro I'm going to write, it would be the most elegant and easy way to put this into a subscript - but since it's not a lot of code that I need and I'll have to implement at least some little element (like a variable) in every single script, it doesn't make much of a difference.

Do you know any agreed-on best_practice for this kind of thing?

 

Thanks a lot!

Best regards,

 

Officer_Bierschnitt


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
Rot Feiertagskalender - Best practice?
04.01.2016 09:38:52 Officer_Bierschnitt
NotSolved
04.01.2016 09:58:54 Gast12752
NotSolved
04.01.2016 10:31:06 Gast97120
Solved
04.01.2016 11:24:37 Officer_Bierschnitt
NotSolved