I have a table with 20 columns - records are added via a UserForm which allocates a sequential unique key to each new record (Column A) …
Records are updated via another UserForm - users click on the unique key in column A, then a button which invokes the UserForm …
The Command Button options on the UserForm are “Cancel” (which unloads the UserForm without saving changes after a Y/N MsgBox warning dialogue) - and “Save” which does two things (three if you the check for changes which reverts to “Cancel” if there are none) …
i) the current record is copied to the next empty row in a table (“History Log”) on another Worksheet - Date/Time and Username are added to the copied record …
ii) the current record is overwritten by the data from the UserForm …
This all works well and users can filter the History Log to see any updates to the record, but users are getting quite clumsy in their filtering of the History Log and I’m looking for a way to control this …
Is it possible to pass a variable (the record unique key) to a VBA routine that does the filtering automatically and then resets the filtering once the user has finished - and before you start telling me I’m being vague, I know!
I have thought about populating a child UserForm with up to (say) the latest 6 updates, but with 20 columns that could be a bit messy! …
Hence this post to see if anyone has any ideas?
Many thanks in advance …
Records are updated via another UserForm - users click on the unique key in column A, then a button which invokes the UserForm …
The Command Button options on the UserForm are “Cancel” (which unloads the UserForm without saving changes after a Y/N MsgBox warning dialogue) - and “Save” which does two things (three if you the check for changes which reverts to “Cancel” if there are none) …
i) the current record is copied to the next empty row in a table (“History Log”) on another Worksheet - Date/Time and Username are added to the copied record …
ii) the current record is overwritten by the data from the UserForm …
This all works well and users can filter the History Log to see any updates to the record, but users are getting quite clumsy in their filtering of the History Log and I’m looking for a way to control this …
Is it possible to pass a variable (the record unique key) to a VBA routine that does the filtering automatically and then resets the filtering once the user has finished - and before you start telling me I’m being vague, I know!
I have thought about populating a child UserForm with up to (say) the latest 6 updates, but with 20 columns that could be a bit messy! …
Hence this post to see if anyone has any ideas?
Many thanks in advance …