The Godfather
New Member
- Joined
- Jul 22, 2011
- Messages
- 30
- Office Version
- 365
- 2016
- Platform
- Windows
Hi,
I am a total beginner in VBA. I have an excel with two sheets as "form" and "database" (actually more but others are not relevant).
In the Form;
1) Users type their username, password, and select the week.
2) In the orange part, users type other stuff (to all 3 rows).
3) When submitted, all are transferred into database.
In the Database (the whole sheet is actually a table); usernames (Form sheet Cell "F5") are stored in C Column, week (Form sheet Cell "F7") is stored in D Column, and the other orange stuff is stored in other columns.
I need the dropdown list (Form sheet cell "F7") only to show the weeks which are not previously posted into database by the same user (which is typed into Form sheet cell "F5"), to prevent users posting other data using the same week. (For instance, user2 should not post anything again for Week 12, since he already posted as seen in database screenshot).
Could you please help me on how to do it? (Preferrably in VBA instead of data validation).
Thanks for reading.
I am a total beginner in VBA. I have an excel with two sheets as "form" and "database" (actually more but others are not relevant).
In the Form;
1) Users type their username, password, and select the week.
2) In the orange part, users type other stuff (to all 3 rows).
3) When submitted, all are transferred into database.
In the Database (the whole sheet is actually a table); usernames (Form sheet Cell "F5") are stored in C Column, week (Form sheet Cell "F7") is stored in D Column, and the other orange stuff is stored in other columns.
I need the dropdown list (Form sheet cell "F7") only to show the weeks which are not previously posted into database by the same user (which is typed into Form sheet cell "F5"), to prevent users posting other data using the same week. (For instance, user2 should not post anything again for Week 12, since he already posted as seen in database screenshot).
Could you please help me on how to do it? (Preferrably in VBA instead of data validation).
Thanks for reading.
Last edited: