buffyisveryfuzzy
New Member
- Joined
- Jan 6, 2017
- Messages
- 8
Hello all, I am new to this form and wish I had joined awhile back.
If we were to rank my Excel skills by the United States Class system, I would probably be cresting Upper-Middle class; so very good, but not an expert yet.
I have been working on a project for work that my coworkers are very impressed with, however, I’ve run into an issue when it comes to ignoring blank rows.
Let me break it down for you.
There are 5 columns of data, from left to right as follows:
‘Date and Time’ – ‘Staff Member’ – ‘Hospital’ – ‘Topic’ – ‘Notes’
‘Date and Time’ automatically updates to the current date and time, but the next three columns have dropdowns so the user is limited to the data they can input. Finally, the notes section has no limitations.
Underneath those column topics there are 10 rows to allow for bulk data entry. If the user only has one rows worth of information, they would use only the top row, hit the ‘SUBMIT’ button, and their entries would be deleted from the current sheet and transferred to a ‘Database” sheet for storage; there’s even a message that pops up stating that their data was successfully transferred.
For a user that wants to enter 10 rows of data, they would hit the button that says ‘BULK SUBMIT’ and exactly the same as above would happen for all 10 rows.
For both instances, the new data is inserted as new rows at the top of the ‘Database’ tab, pushing the existing data down to keep all data in chronological order.
Now the problem with the ‘BULK SUBMIT’ macro.
No matter how many rows the user fills in, even if it’s not all of them, ALL 10 ROWS will transfer to the ‘Database’ tab. So if the user fills in the top 2 rows and hits ‘BULK SUBMIT,’ the macro will function, but there will be two new rows of data at the top of the ‘Database’ Sheet followed by 8 blank rows underneath that, followed by the older rows that were entered previously.
I want a user to be able to hit one ‘SUBMIT’ Button, whether it’s for a single entry, 2 entries, 6 entries, or all 10 entries; which I can easily make happen.
HOWEVER
I want the Macro to recognize blank rows and omit them from being transferred to the database.
So if I decided to enter data into row 1, 2, 6, and 9 but nothing in the others, the macro behind the ‘SUBMIT’ Button will ignore rows 3, 4, 5, 7, 8, and 10 and move 1, 2, 6, and 9 (IN THAT ORDER) TO THE ‘Database’ Sheet.
Am I making since? I feel like this is a very doable thing.
Please, all and any help is appreciated.
Thank You
If we were to rank my Excel skills by the United States Class system, I would probably be cresting Upper-Middle class; so very good, but not an expert yet.
I have been working on a project for work that my coworkers are very impressed with, however, I’ve run into an issue when it comes to ignoring blank rows.
Let me break it down for you.
There are 5 columns of data, from left to right as follows:
‘Date and Time’ – ‘Staff Member’ – ‘Hospital’ – ‘Topic’ – ‘Notes’
‘Date and Time’ automatically updates to the current date and time, but the next three columns have dropdowns so the user is limited to the data they can input. Finally, the notes section has no limitations.
Underneath those column topics there are 10 rows to allow for bulk data entry. If the user only has one rows worth of information, they would use only the top row, hit the ‘SUBMIT’ button, and their entries would be deleted from the current sheet and transferred to a ‘Database” sheet for storage; there’s even a message that pops up stating that their data was successfully transferred.
For a user that wants to enter 10 rows of data, they would hit the button that says ‘BULK SUBMIT’ and exactly the same as above would happen for all 10 rows.
For both instances, the new data is inserted as new rows at the top of the ‘Database’ tab, pushing the existing data down to keep all data in chronological order.
Now the problem with the ‘BULK SUBMIT’ macro.
No matter how many rows the user fills in, even if it’s not all of them, ALL 10 ROWS will transfer to the ‘Database’ tab. So if the user fills in the top 2 rows and hits ‘BULK SUBMIT,’ the macro will function, but there will be two new rows of data at the top of the ‘Database’ Sheet followed by 8 blank rows underneath that, followed by the older rows that were entered previously.
I want a user to be able to hit one ‘SUBMIT’ Button, whether it’s for a single entry, 2 entries, 6 entries, or all 10 entries; which I can easily make happen.
HOWEVER
I want the Macro to recognize blank rows and omit them from being transferred to the database.
So if I decided to enter data into row 1, 2, 6, and 9 but nothing in the others, the macro behind the ‘SUBMIT’ Button will ignore rows 3, 4, 5, 7, 8, and 10 and move 1, 2, 6, and 9 (IN THAT ORDER) TO THE ‘Database’ Sheet.
Am I making since? I feel like this is a very doable thing.
Please, all and any help is appreciated.
Thank You