Hawkins1989
New member
- Local time
- Today, 08:49
- Joined
- Jan 25, 2018
- Messages
- 10
Hi,
I wonder if someone could please help me, I have a form which has a lot of list boxes and text boxes above them - the text boxes hold dates and the list boxes show people who are attending on that date.
Currently the first box shows the monday of the current week and the rest populate with the next 4 weeks which is ok but I would like to have a combo box at the top with the months in and what ever month is selected the first box goes to the first week of the month - if the 1st is a monday then great but if not then how do I get the closest monday to the first of the month ie. goes back to the 31st or 30th etc.
Basically I want it to work a bit like a calendar.
I have searched the internet but I haven't been able to find anything that I could make work for what I want.
I think the combo box may need to use a select case option for each month but I can't think of what the code would be.
Many thanks for any help you wonderful people can offer
M
P.s you will have to dumb it down a bit for me as I'm not that great at VBA.
I wonder if someone could please help me, I have a form which has a lot of list boxes and text boxes above them - the text boxes hold dates and the list boxes show people who are attending on that date.
Currently the first box shows the monday of the current week and the rest populate with the next 4 weeks which is ok but I would like to have a combo box at the top with the months in and what ever month is selected the first box goes to the first week of the month - if the 1st is a monday then great but if not then how do I get the closest monday to the first of the month ie. goes back to the 31st or 30th etc.
Basically I want it to work a bit like a calendar.
I have searched the internet but I haven't been able to find anything that I could make work for what I want.
I think the combo box may need to use a select case option for each month but I can't think of what the code would be.
Many thanks for any help you wonderful people can offer
M
P.s you will have to dumb it down a bit for me as I'm not that great at VBA.