98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Dates in VBA
Dates in VBA
Resolved · Low Priority · Version 2007
Khurram has attended:
Excel VBA Intro Intermediate course
Dates in VBA
If i wanted to insert a date, which would change on a daily bassis excluding bank holidays what code could i use?
thanks
Khurram
RE: dates in VBA
Hi Khurram
Thank you for your question
This would be a substantial undertaking. You would need code that would compare the current date with a list of bank holiday dates. These dates would be contained in a range within a spreadsheet. You would need to build a loop that goes through the range a cell at a time and sees if any of them match todays date. If there was no match you would need to enter todays date. If however there was a match, you would need to increase today's date by one and then run this through the list of bank holidays. Keep increasing by 1 until you find a date not in the list, and insert this date.
Regards
Stephen
Mon 28 Sep 2009: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Creating a range of monthly payments as textYou could use a formula to create a range of payment ie. payment amount for x% to y% rate with fixed terms and principle. |