Navigate to a tab from a button

I want to be able to change a tab selection based on an action from a Modal. Is that possible.
Use Case:
User goes to tab B to perform an action (enter data). Upon completion of that data entry, I want to take them back to tab A without them having to click on tab A.
Is that possible?