Macros that solicit user input data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to solicit data from the user during a macro run? For example, can I set it up so that each time I run the macro, I can input a particular number, e.g., "input the number of participants"..
 
Use an InputBox

Regards

Trevor


CC said:
Is there a way to solicit data from the user during a macro run? For
example, can I set it up so that each time I run the macro, I can input a
particular number, e.g., "input the number of participants"..
 
CC

Num = InputBox("Enter number of participants")
ActiveCell.Value = Num
MsgBox "Number of participants is " & Num

Gord Dibben Excel MVP
 

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

Back
Top