Question: I want to allow the user to make a selection, run some code, pause for another selection, run more code?

I work with documents with large number of tables that eventually convert to HTML. Sometimes the formatting on two like tables doesn't convert the same. Knowing how the converter works, I'd like to copy all of the formatting data from one table and "paste" it onto another one.

I've the idea of a userform to have the user select something, hit a copy button, select something else and hit a paste button.

Answer: 
The timer function allows you to do this. It may not be the best way to code, but it is the answer to your problem:

```
'1st code here
Start = Timer
Do While Timer < Start + 10
  DoEvents
Loop
'do 2nd code here

```

`DoEvents` allows the user to select text, etc. After 10 seconds, the code resumes at "2nd code."
You can use global a global variable:

```
Public myVar as Variant

Sub fillmyVar()
    myVar = Selection
End Sub

Sub doSth()
    ' use myVar and the new selected text
End Sub

```