Pause Macro

G

Guest

I'd like to pause a macro while the user deletes some rows, then have them
click OK when they're ready to run the insert formulas macro. I looked at
some of the solutions here, but wondered what the easiest way is. I'm not
using any user forms. TIA
 
N

Norman Jones

Hi Cottage6,

Try something like:
'=============>>
Public Sub Tester()
Dim res As Range

On Error Resume Next
Set res = Application.InputBox(Prompt:="Select rows to delete", _
Type:=8)
On Error GoTo 0

If Not res Is Nothing Then
res.EntireRow.Delete
End If

'your subsequent code

End Sub
'<<=============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top