Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programme interupt/break for manual data input 1

Status
Not open for further replies.

KCarter

MIS
Apr 28, 2003
6
GB
Is there a way to interupt or make a break in a programme to allow for manual data input into a table, before resuming the programme?

VBA Visual Basic for Applications (Microsoft Excel)


 
You could put a break point in your code so that execution stops at that point, you could then press play in teh VBE to resume it.

However, that's not a practical solution if you're planning to release the workbook to other users. what might be an idea would be to have two macros - the first one execute then stops, the second one then executes by being linked to the worksheet change event, provided that certain cells have been manipulated first.

One other possible solution would be to have a form appear after the first half of your macro has finished. The form would have a spreadsheet control embedded into which would be read the data from the sheet the user is meant to alter. After manual input they could press the OK button on the form and teh second half of the macro would start.

Howzat?!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top