VBA Script to detect user input

  • Thread starter Thread starter Fraggs
  • Start date Start date
F

Fraggs

Is there a way using VBA that I can tell IF and / or what number/tex
has been placed into a cell?

What I aim to do is have the user place something in a cell, press
button and my spreadsheet will display the relevant data.

Can anyone assist me?

Thanks
 
ActiveCell is a reference to the cell currently with the focus.

If the user edits a cell, it triggers the Worksheet_Change event which has
Target as an argument and Target is a reference to the Edited cell.

If you are not familiar with events

http://www.cpearson.com/excel/events.htm
Chip Pearson's page on the topic.
 

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