aletheasim96
New Member
- Joined
- Feb 2, 2018
- Messages
- 3
Hello everyone! Okay im super new to excel vba so I apologise if my question is really basic:P I've been asked to automate the sheet below but have no idea how to go about it. So the data values in the table are linked to a PHD system that generates the data using the dates at the top of each column. So what i am supposed to do is to come up with a button that can generate the dates of the next 4 or 5 wednesdays in the next month, depending on exactly how many wednesdays fall in the next month, given the date of the last wednessday of the previous month, in this case 28 Feb. So the desired end result of running the code would be to add the next 4 or 5 wednesdays to the columns next to the last entry(28 Feb in this case) and to drag the formulas from the previous data columns to generate the results for these new columns. Could anyone give me advice on how to do this? Any help is much appreciated!!!
[TABLE="width: 500"]
<tbody>[TR]
[TD]03-Jan-2018 8:48:00PM[/TD]
[TD]10-Jan-2018 8:48:00PM[/TD]
[TD]17-Jan-2018 8:48:00PM[/TD]
[TD]24-Jan-2018 8:48:00PM[/TD]
[TD]31-Jan-2018 8:48:00PM[/TD]
[TD]07-Feb-2018 8:48:00PM[/TD]
[TD]14-Feb-2018 8:48:00PM[/TD]
[TD]21-Feb-2018 8:48:00PM[/TD]
[TD]28-Feb-2018 8:48:00PM[/TD]
[/TR]
[TR]
[TD]2654[/TD]
[TD]254[/TD]
[TD]254[/TD]
[TD]24[/TD]
[TD]52[/TD]
[TD]687[/TD]
[TD]76[/TD]
[TD]67[/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]423[/TD]
[TD]45[/TD]
[TD]3454[/TD]
[TD]2452[/TD]
[TD]52[/TD]
[TD]5[/TD]
[TD]25[/TD]
[TD]86[/TD]
[TD]78[/TD]
[/TR]
[TR]
[TD]245[/TD]
[TD]2452[/TD]
[TD]54[/TD]
[TD]42[/TD]
[TD]4[/TD]
[TD]42[/TD]
[TD]87[/TD]
[TD]52[/TD]
[TD]76
[/TD]
[/TR]
[TR]
[TD]42[/TD]
[TD]245[/TD]
[TD]254[/TD]
[TD]4[/TD]
[TD]542252[/TD]
[TD]45[/TD]
[TD]5225[/TD]
[TD]78[/TD]
[TD]86[/TD]
[/TR]
[TR]
[TD]452[/TD]
[TD]452[/TD]
[TD]424[/TD]
[TD]25[/TD]
[TD]25[/TD]
[TD]25[/TD]
[TD]525[/TD]
[TD]89
[/TD]
[TD]785
[/TD]
[/TR]
[TR]
[TD]45[/TD]
[TD]45[/TD]
[TD]24[/TD]
[TD]4[/TD]
[TD]54[/TD]
[TD]8[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]54[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!!!!
[TABLE="width: 500"]
<tbody>[TR]
[TD]03-Jan-2018 8:48:00PM[/TD]
[TD]10-Jan-2018 8:48:00PM[/TD]
[TD]17-Jan-2018 8:48:00PM[/TD]
[TD]24-Jan-2018 8:48:00PM[/TD]
[TD]31-Jan-2018 8:48:00PM[/TD]
[TD]07-Feb-2018 8:48:00PM[/TD]
[TD]14-Feb-2018 8:48:00PM[/TD]
[TD]21-Feb-2018 8:48:00PM[/TD]
[TD]28-Feb-2018 8:48:00PM[/TD]
[/TR]
[TR]
[TD]2654[/TD]
[TD]254[/TD]
[TD]254[/TD]
[TD]24[/TD]
[TD]52[/TD]
[TD]687[/TD]
[TD]76[/TD]
[TD]67[/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]423[/TD]
[TD]45[/TD]
[TD]3454[/TD]
[TD]2452[/TD]
[TD]52[/TD]
[TD]5[/TD]
[TD]25[/TD]
[TD]86[/TD]
[TD]78[/TD]
[/TR]
[TR]
[TD]245[/TD]
[TD]2452[/TD]
[TD]54[/TD]
[TD]42[/TD]
[TD]4[/TD]
[TD]42[/TD]
[TD]87[/TD]
[TD]52[/TD]
[TD]76
[/TD]
[/TR]
[TR]
[TD]42[/TD]
[TD]245[/TD]
[TD]254[/TD]
[TD]4[/TD]
[TD]542252[/TD]
[TD]45[/TD]
[TD]5225[/TD]
[TD]78[/TD]
[TD]86[/TD]
[/TR]
[TR]
[TD]452[/TD]
[TD]452[/TD]
[TD]424[/TD]
[TD]25[/TD]
[TD]25[/TD]
[TD]25[/TD]
[TD]525[/TD]
[TD]89
[/TD]
[TD]785
[/TD]
[/TR]
[TR]
[TD]45[/TD]
[TD]45[/TD]
[TD]24[/TD]
[TD]4[/TD]
[TD]54[/TD]
[TD]8[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]54[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!!!!