Macro (Pause)

S

Steved

Hello from Steve Dee

I would like to run a macro, pause it to enter data then
allow the macro to run again.

Please how do I do this

Thankyou.
 
G

Gord Dibben

Steved

Use the InputBox to pause and collect the data for use

Public Sub who_is_it()
Dim somename as String
somename = InputBox("Enter your name")
MsgBox "your name is " & somename ''message pops up with name
Range("A1").value = somename ''name is placed in A1
End Sub

Gord Dibben Excel MVP XL2002
 

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