Sunteți pe pagina 1din 5

How to Use Excel to Create Interactive

Worksheets
As a small business owner, you will often have to work with others on an Excel worksheet.
For example, if you have hired a sales or marketing consultant, you can give them an
interactive worksheet for sales projections or expense reports. An interactive worksheet
allows users to enter data in specific cells, giving them instructions as to what type of data is
required in each cell and error messages if they enter the wrong data. You can also hide and
protect formulas in the worksheet to prevent them from being accidentally modified or
deleted by the user.

Data Limitations and Cell Instructions


Launch Excel and create a new workbook. Select a cell to be used for entering data. Click the
"Data" tab. Select "Data Validation" from the ribbon's "Data Tools" section. The "Data
Validation" dialog box opens.
Use the "Settings" tab options in the dialog box to limit the type of data that can be entered.
For example, to limit entries in the cell to a 4-digit number to represent a year, select "Text
Length" in the "Allow" menu, "Equal To" in the "Data" menu and type "4" in the "Length"
text field.
Click the "Input Message" tab in the dialog box to add a message or hint for the cell. Type a
title for the message in the "Title" field for your future reference. Type a hint in the
"Message" field, such as, "This field must have 4 digits."
Click the "Error Alert" tab to design an error message if the wrong data is entered in the cell.
Select an icon from the "Style" menu. Type a title in the "Title" field and a message in the
"Error Message" field. Note that both the title and message will be part of the error message.
Click "OK" to save the "Data Validation" settings and close the dialog box. Click the cell to
see your instructions appear in a pop-up window. Type an incorrect value in the cell to see
your error message. Type a correct value in the cell to see that no error message appears.

Hide and Lock Formulas


Click a cell that can be used to apply a formula to a value entered by a user. Type a formula in
the cell. For example, if the user enters a value in cell B2 representing monthly sales, you can
create an annual forecast beside it by typing "=(B2*12)" in cell C2.
Click the Home tab while the cell containing the formula is still selected. Click "Format,"
then "Format Cells." The "Format Cells" dialog box opens.
Click the "Hidden" check box under the "Protection" tab of the dialog box. Click "OK."
Click the "Review" tab, then click "Protect Sheet" located in the ribbon's "Changes" group.
Click the check box beside "Protect Worksheet and Contents of Locked Cells." Click "OK."

How to Build a Questionnaire in Excel


Microsoft Excel may not be the first software program you think of when compiling text for a
questionnaire, but it offers most of the same word processing features as other Office Suite
products such as Word and Publisher. Building an exam, quiz or survey in Excel requires you
to brainstorm exactly what you want answered, entering that information and then giving
responders a place to record their responses. Make Excel questionnaires to be populated
directly on the screen or printed out and answered by hand.
Open Microsoft Excel. Click the cursor into cell "A1." Type the name of the questionnaire,
such as Am I Qualified to Adopt a Cat?
Highlight the text, which will span over several cells. Click the Font size menu on the
ribbon and increase the font to 14. Click the B icon to bold the questionnaire title.
Click the small line between rows 1 and 2. Drag down so the width of the row increases,
giving the title room to fit. Double-click the line in between columns "A" and "B" so that the
column width adjusts, fitting all of the title in the single cell. Column "A" is now wider than
those of the rest of the spreadsheet.
Click into cell "B2." Type Name, then Examinee or your preferred way for the
questionnaire taker to know he should type or write his name. Click into cell "B3" and type
Date or Date of Questionnaire.
Click the Insert tab and the Shapes button. Click the first option of the straight line under
the Lines section. Press and hold down the Shift key, click the cursor and draw a line
extending from just after the Name cell to the right, giving the questionnaire taker a place
to enter her name. Repeat to draw a line to the right of the Date cell.
Click cell "B5," leaving row 4 empty to give a space after the Date column. Type the first
question, such as Do you have animal allergies? or Have you ever given a pet up for
adoption? The text will span over the course of several cells to the right, but youll fix that in
a later step.
Press the Enter key to drop into cell "B6." Type the next question. Continue typing
questions until the questionnaire is complete. If desired, click to the left of the first character
of each question and type a number, in numerical order, followed by a period. Excel does not
perform auto-numbering, so it has to be done manually if you want it in your questionnaire.
Double-click the small line between columns "B" and "C." This widens the column to fit all
of the questionnaire text, and also bumps over the lines you drew.
Repeat the line-drawing process to the right of each question. Lines are optional; you can skip
them entirely and just let users either type into the cells or hand-write their answers in the
space provided.
Click the File tab and Save As. Type the questionnaire file name and click the Save
button.

How to Use Radio Buttons in Excel


Radio buttons, which are also called option buttons, provide a quick way for users of your
custom Excel forms to quickly answer questions with a small, clearly defined set of options.
For example, you can provide radio buttons to let users quickly select their age range: 10 to
30, 30 to 50, or 50+. A Visual Basic for Applications program lets you transfer the radio
buttons data to a spreadsheet. Using Excels radio buttons involves inserting them on a user
form, setting their properties and then writing program code that runs when a radio button is
pressed.
1. Create a new Excel workbook
2. Press Alt-F11 to open the VBA development environment.
3. Open the "Insert" menu and choose "Userform" to open a window for designing user
forms.
4. Drag the "OptionButton" control from the Toolbox onto the form.
5. Repeat 4th step to add a second radio button under the first.
6. Click the top radio button to select it, then pause for at least a second before clicking the
radio button again.
This time lapse is necessary to bypass the double-click action linked to the radio button.
7. Type the text for the radio button.
For example, if you want the form to ask the user what her favorite color is, you can type
red for the radio buttons label. Repeat this step to label the other radio button.
8. Drag the "Label" control from the Toolbox onto the form, above the upper radio control.
Type over the labels default text with the question you want to ask on your form, such as
Whats your favorite color?
9. Double-click the upper radio button to open the window for entering the program code
for the button.
10. Type the following program code above the statement End Sub" :
ActiveSheet.Cells(1, 1) = "blue"
Replace the blue text with the text you want to insert into the current spreadsheet when
the user clicks the radio button. This program code inserts the quoted text into the topleft cell of the current spreadsheet.
11. Add the program code for the second radio button as you did the first button.
If youre following the favorite color example, the program code for your second radio
button should look like this: ActiveSheet.Cells(1, 1) = "red"
12. Click the arrow (triangle/play) icon on the development environments toolbar to display
your user form. The active spreadsheet appears in place of the development environment.
Your user form appears over the spreadsheet.
13. Click one of the radio buttons, and observe that the value you wrote for the buttons
program code appears in the top-left cell of the spreadsheet. Click the other radio button
to see its value appear in the cell.
14. D
ActiveSheet.Cells(nomor_baris, nomor_kolom) = "kata_yang_ingin_dimasukkan"

How to Make Custom Buttons in Microsoft


Excel 07
Millions of users use Microsoft Excel to create useful spreadsheet applications for tasks
ranging from creating a simple home budget to evaluating marketing or sales data in a
Fortune 500 company. A relatively easy-to-use interface as well as many ready-to-use
formulas and calculations are the most attractive aspects of Excel, and adding custom buttons
to the Ribbon bar makes the application easier and even more intuitive to use. Additionally,
Excel enables you to add custom macro buttons to your spreadsheets in order to automate
tasks in other Office applications.

Add a Custom Quick Access Toolbar Button to the Excel


Ribbon
Start Microsoft Excel. Click File on the Ribbon bar, and then Options.
Double-click the Quick Access Toolbar link in the left pane of the Excel Options window.
Select the Excel command or function you want to be able launch from the Quick Access
Toolbar in the list under the Popular Commands label. Highlight the desired function, and
then click the Add button. For instance, if you want to be able to use the Quick Print
function, and print a spreadsheet without the Print dialogue box, highlight the Quick Print
command, and then click Add.
Click the OK button to save the changes to the Quick Access Toolbar and close the Excel
Options window. Once you return to the main spreadsheet window, the new button appears
on the Quick Access Toolbar above the Ribbon and in the top right corner of the Excel
program window.

Add a Custom Macro Button


Launch Excel and open the workbook in which you want to create a custom macro button.
Click File, and then Options on the Excel Ribbon.
Click the Customize Ribbon label in the Excel Options window. Click the check box next
to Developer in the Main Tabs pane, and then click OK to close the Excel Options
window. After you return to the main Excel window, the Developer tab appears on the ribbon.
Click the Developer tab. Click the Insert icon in the Controls group. When the dropdown box appears, click the Button control under the Form Controls header.
Click the cell on the spreadsheet where you want to place the custom button. When the
Assign Macro window appears, highlight the name of the custom macro you want to launch
with the button control, and then click OK.

Click the Record button if the macro you want to use does not yet exist in the workbook.
Enter a name for the new macro window, and then click OK." Perform a task or series of
mouse clicks you want to control with the macro recorder. After you finish recording your
actions or mouse clicks, click the Stop Recording button in the Code group of the
Developer tab.
Right-click the new control button on the spreadsheet, and then click Edit Text on the popup menu. Change the Button label text to something more descriptive for the button
control. For instance, if you have a macro that opens the Microsoft Save As dialogue box and
want to run the macro when you click the button, rename the button label Save As or
something similar.
Click the "Command" button to launch and run its associated macro.

S-ar putea să vă placă și