Greetings,
I'm making my way up slowly but surely to get better at VBA coding but the road is still long thus I humbly request for any assistance from your side ray:
I actually have a worksheet as per below:
<tbody>
</tbody>The sheet is populated with data from a UserForm with the following objects on it:
I actually can't get the VBA code right which will populate the worksheet as per below once I fill in the UserForm and hit the 'Save' button
<tbody>
</tbody>
<tbody>
</tbody>
Additionally if any date within the range is a Sunday, same must not be listed in the worksheet.
Finally in case the 'Start Date' and the 'End Date' are the same date, then only one row is to be filled.
That is:
<tbody>
</tbody>
<tbody>
</tbody>
Thank you beforehand for your valuable help.
Cheers
Shameem
I'm making my way up slowly but surely to get better at VBA coding but the road is still long thus I humbly request for any assistance from your side ray:
I actually have a worksheet as per below:
A | B | C | D | |
1 | Date | Item X | Item Y | Item Z |
2 | ||||
3 | ||||
4 | ||||
5 |
<tbody>
</tbody>
- Start Date: (Label1) - Text box (TextBox1)
- End date: (Label2) - Text Box: (TextBox2)
- Item X: (Label3) - Text Box (TextBox3)
- Item Y: (Label4) - Text Box (TextBox4)
- Item Z: (Label5) - Text Box (TextBox5)
- Save - (CommandButton1)
I actually can't get the VBA code right which will populate the worksheet as per below once I fill in the UserForm and hit the 'Save' button
USERFORM | |
Start Date: 01/01/2019 End Date: 01/03/2019 Item X: ABCD Item Y: EFGH Item Z: IJKL SAVE |
<tbody>
</tbody>
A | B | C | D | |
1 | Date | Item X | Item Y | Item Z |
2 | 01/01/2019 | ABCD | EFGH | IJKL |
3 | 01/02/2019 | ABCD | EFGH | IJKL |
4 | 01/03/2019 | ABCD | EFGH | IJKL |
5 |
<tbody>
</tbody>
Additionally if any date within the range is a Sunday, same must not be listed in the worksheet.
Finally in case the 'Start Date' and the 'End Date' are the same date, then only one row is to be filled.
That is:
USERFORM | |
Start Date: 01/11/2019 End Date: 01/11/2019 Item X: MNOP Item Y: QRST ItemZ: UVWA SAVE |
<tbody>
</tbody>
A | B | C | D | |
1 | Date | Item X | Item Y | Item Z |
2 | 01/01/2019 | ABCD | EFGH | IJKL |
3 | 01/02/2019 | ABCD | EFGH | IJKL |
4 | 01/03/2019 | ABCD | EFGH | IJKL |
5 | 01/11/2019 | MNOP | QRST | UVWA |
<tbody>
</tbody>
Thank you beforehand for your valuable help.
Cheers
Shameem