Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I know this question could be avoided with proper planning and coding appropriately. I figure with my novice abilities in VBA that I would need to do some serious rewriting to do it right, and right now time is of an essence. I suspect this is going to be difficult to explain.
Suppose I have this quasi code ..
Essentially , is it possible to interrupt this procedure and then resume it?
For example, firstproc will populate a database with activities and times for each.
Thirdproc anaylses the data created in firstproc, and utilizing a staff schedule, will assign various staff to different tasks associated with that activity. To do this, the previously defaulted staff schedule must be accurate.
So, I have included secondproc which instructs the user to go back to the worksheet with the staff schedule and review it's accuracy. From the worksheet with the staff schedule, there is a button "OK" which, after review the user is satisfied with it's accuracy, will lock the staff schedule. I then would like to resume then, and only then, with thirdproc. The user can also edit the staff schedule, and once editted, pressing OK will lock the changes, and advance the code to thirdproc.
I don't know how to interrupt procedure process1 to allow the user to review/edit/ok the schedule before proceeding.
secondproc is just a message to the user, but clearly exiting the message will resume procedure process1 before the user has a chance to review the staff schedule.
Can anyone suggest an option for this situation?
Suppose I have this quasi code ..
Code:
sub process1
call firstproc
call secondproc
call thirdproc
end sub
Essentially , is it possible to interrupt this procedure and then resume it?
For example, firstproc will populate a database with activities and times for each.
Thirdproc anaylses the data created in firstproc, and utilizing a staff schedule, will assign various staff to different tasks associated with that activity. To do this, the previously defaulted staff schedule must be accurate.
So, I have included secondproc which instructs the user to go back to the worksheet with the staff schedule and review it's accuracy. From the worksheet with the staff schedule, there is a button "OK" which, after review the user is satisfied with it's accuracy, will lock the staff schedule. I then would like to resume then, and only then, with thirdproc. The user can also edit the staff schedule, and once editted, pressing OK will lock the changes, and advance the code to thirdproc.
I don't know how to interrupt procedure process1 to allow the user to review/edit/ok the schedule before proceeding.
secondproc is just a message to the user, but clearly exiting the message will resume procedure process1 before the user has a chance to review the staff schedule.
Can anyone suggest an option for this situation?