Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

Another option is to type out the options then have the readers type in their answers.

Form for Marital Status has a number of choices. (Single, Married, Divorced, or Widowed)
Info

Another good thing to add in forms is a “Clear Form” Button. These buttons will clear the form instantly with one click.

...

One exception to the rule on using buttons is that you are allowed to make simple ones that run a macro. A good example is a Clear Form button. The Clear Form button will clear your form and is accessible for users using screen readers or only keyboards. To create your Clear Form button,

  1. Go to the Developer Tab.

    Developer Tab in Microsoft Excel.pngImage Added
  2. Click Insert, and in the Form Controls section, click the Form Control button.

    The Insert button with the Form Controls section open. The Form Control button is selected.Image Added
  3. Click and drag in cell B1 to create a button at a size you want.

    A large button is in Cell B1 called Button 1Image Added
  4. The Assign Macro box will appear, click Cancel.

    The Assign Macro box with the cancel button in the bottom right corner.Image Added
  5. Now double click your button and type “Clear Form.”

    The button's name has been changed from Button 1 to Clear Form.Image Added

Now that your button is made, we need to assign a macro and use some VBA code to make the button perform an action. To do this,

  1. Go to the Developer Tab and click Visual Basic.

    Visual Basic Button.pngImage Added
  2. In the Visual Basic box, click Insert and choose Module.

    The Insert Tab in the Visual Basic box with Module highlighted.Image Added
  3. In the text box, type in the code for your button.

    An example of code to use for making a clear form button perform the action.Image Added
    1. In the code, it says “Are you sure you want to clear the form?” This is in the code because a person can read “Clear Form” and know what it is. But a screen reader will not be able to read the Clear Form button. Just that a button is present. This question will be read by the screen reader and will alert the reader.

    2. Be sure you made changes to the code if you need it. For example, changing the range to reach your whole form.

  4. When you click the button, the question will pop up. If you answer “Yes”, the form will be cleared. If you answer “No,” nothing will happen.

  5. Right click your button and click Assign Macro in the expansion menu.

    The button expansion with the Assign Macro option highlighted.Image Added
  6. In the pop-up box, click the Clear Form Macro and click OK.

    The Assign Macro box with a Macro called Clear Form.Image Added
  7. Go back to the Developers Tab and click on the Macros button.

    The Macros button in Microsoft Excel. It looks like a grey piece of paper with a red paper to the right.Image Added
  8. In the pop-up box, click the Options button and change the short cut to Control + Shift + C.

    The Macro box to the left with the Options button in the bottom right corner. The Macro Options box is to the right with a short cut key set at Control Shift capital C.Image Added
    1. Clicking those buttons in that order will allow students who only use keyboards to use the macros and clear the sheet.

  9. To fulfill accessibility requirements, add instructions to cell A1 on how to use the Clear Form button.

    A complete form with a Clear Form button and instructions on how to fill out the form and how to clear the form and restart.Image Added

Section 6.6: Locking and Protecting

...

  1. Highlight the input cells, right click, and select Format Cells.

    A restaurant complaint form.
  2. In the dialog box, click the Protection Tab and un-check the Locked Option. Click OK.

    Format Cells Dialog box with the Protection Tab open. The Locked option is unchecked.
  3. Go to the Review Tab of the ribbon. Select Protect Sheet.

    Review Tab in ExcelThe Protect Section in MS Excel. Protect Sheet is all the way to the left.
  4. In the Protection Sheet Dialog Box, make sure “Select Locked Cells” and “Select Unlocked Cells” are checked. Everything else can be unchecked. Click OK.

    Protect Sheet dialog box with select locked cells and select unlocked cells checked.
  5. Optional: You can create a password.

  6. Now with your spreadsheet saved, a user will only be able to make changes to the input fields. If they tried to make changes, an alert message will appear.

    A warning saying that the cell or chart is protected and that to make changes you may need to enter a password.Image Added

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@82d
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article
cqllabel = "kb-how-to-article" and type = "page" and space = "AN"