LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,073
Default create automatic response to questions in excel....

On Dec 1, 6:39 am, felicia wrote:
Hi,
Is there a way in excel where I have 10 questions and can click on one
question and get the answer to pop up in my spreadsheet?

thank you,

Felicia


One way, with questions in A1:A10 and corresponding correct answers in
A1:A10 on a hidden worksheet with tab name "Answers"...

right click the tab of the sheet with the questions then select "View
code" from the popup menu and paste in the following code...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Cells.Count = 1 And _
Not Intersect(Target, Range("A1:A10")) Is Nothing And _
ActiveCell.Value < "" Then
Application.EnableEvents = False
MsgBox Sheets("Answers").Range(Target.Address).Value
Range("A11").Select
Application.EnableEvents = True
End If
End Sub

When you select a cell with a question the code produces a message box
with the correct answer.

Ken Johnson

 
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
How do I set up a daily call out response response register? Pule Excel Worksheet Functions 1 October 7th 07 01:34 PM
Create an automatic backup file on open in EXCEL? bjohnsonnc Excel Discussion (Misc queries) 1 September 20th 07 04:45 PM
How can I create a soccer chart with automatic updates in Excel Gno Charts and Charting in Excel 0 August 13th 06 05:26 PM
How to create Automatic Filenames in Excel Trevor6410 Excel Discussion (Misc queries) 1 November 23rd 05 05:05 PM
How do I create automatic cell movement when using excel babykates Excel Worksheet Functions 1 November 1st 04 01:22 PM


All times are GMT +1. The time now is 12:49 AM.

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

About Us

"It's about Microsoft Excel"