+ Reply to Thread
Results 1 to 2 of 2

Creating a test in Excel

Hybrid View

  1. #1
    Registered User
    Join Date
    03-30-2015
    Location
    Stockton - on - Tees, England
    MS-Off Ver
    Office for Mac 2011
    Posts
    1

    Creating a test in Excel

    Hi All,

    I am planning on creating a test in excel. Basically I have a number of blank drawings that I want to test myself by filling in the nomenclature of the different items on the drawing.

    I was hoping there was someway I could set this up in excel as I am sure I have seen it done before.

    Basically what I want to do is copy the picture into excel, then set it up somehow so that when an item is clicked (I would imagine there would have to be some sort of button overlayed) it gives you the option to enter text, this text then displays above/below/next to the item and is highlighted red if incorrect or not if it is correct . . . . or something to that effect.

    I'm a fairly basic user but can manage with formulas and most things its just the programming I have never played with.

    Any help with this would be brilliant or if it is not possible to do and you have any other suggestion then that is much appreciated.

    Cheers!

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Creating a test in Excel

    Below is an example code of what I think you want. First, copy and paste the below code into a new module. Once you insert the image into Excel, right-click the image, click "Assign macro", and select this macro. Using this macro, when the user clicks the image, and input box will appear. You can change the prompt in the code. It then returns the user's input in cell A1. The IF statement then checks to see if the user entered the correct answer, as shown by the "RightAnswer" string. Change this value to whatever you need. If true, the text turns green. If false, the text turns red. Hope this helps!

    Sub Correct()
    Dim userInput As String
    userInput = InputBox("Enter name of picture", "Name of picture")
    Range("A1").Value = userInput
    If userInput = "RightAnswer" Then
        Range("A1").Font.Color = vbGreen
    Else
        Range("A1").Font.Color = vbRed
    End If
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating a chart of student test scores
    By mmcgee in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-16-2014, 02:10 PM
  2. Help creating a Test using VBA and option buttons
    By usafmeinweg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2012, 02:43 AM
  3. creating a test /scambling the words.
    By gencoglu27 in forum Excel General
    Replies: 4
    Last Post: 03-24-2012, 04:58 AM
  4. Creating Objective Type Test
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2012, 08:32 AM
  5. Creating a self test
    By esalutillo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2011, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1