Pausing a macro for user input

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

What is the command to pause a macro so user can input a
line number that changes with each use of the
spreadsheet. Old Lotus command was {?}
 
Wayne,

Try this:

Dim x As Long
x = InputBox("What line?", "")
Rows(x).Select
 

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