Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Script to detect user input

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default VBA Script to detect user input

Hi
use something like
msgbox activesheet.range("A1").value

--
Regards
Frank Kabel
Frankfurt, Germany


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

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

Can anyone assist me?

Thanks.


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Script to detect user input

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.
--
Regards,
Tom Ogilvy

"Fraggs " wrote in message
...
Is there a way using VBA that I can tell IF and / or what number/text
has been placed into a cell?

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

Can anyone assist me?

Thanks.


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
How can I detect if user is in Group Mode when a macro starts? R-N Excel Programming 5 June 15th 04 01:16 PM
How to detect user quitting excel danzel Excel Programming 2 June 8th 04 12:18 PM
how to detect if user has a dialogbox open Von Shean Excel Programming 2 January 12th 04 02:35 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 04:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"