Unit - 3
Unit - 3
3.1 Introduction
3.2 Objectives
3.3 Protect worksheet data
3.4 Unlock Cells
3.5 Unprotect worksheet
3.6 Print preview worksheet
3.7 Page setup
3.8 Margins
3.9 Page break
3.10 Summary
3.11 Answers/Solutions
3.12 Further reading
1
3.1 Introduction
Variety of user access services of Microsoft Excel as a tool used for storing different
kinds of data. Some data is sensitive regarding confidentiality and secrecy also. Excel
provides layered protection for such private data elements. You can protect your data
against unauthorized access by using protection mechanism available in Excel. The
features of Excel related to protecting data cells, worksheets and workbooks by applying
password protection are not only providing security to data but can also be used to
represent information in a more understandable and clear manner. You can hide
unnecessary details to avoid confusion to understand the data and related information.
The data protection features of Excel also help the owner as well as other users to
prevent accidental changes to data. Hidden and locked data in excel workbook can not
be encrypted thus protected against unauthorized changes.
In this unit you will learn the ways to protect your data against unauthorized access.
The techniques to unprotect data are also discussed to allow authorized user to access
and use data. Also you will learn to protect and unprotect cells in a worksheet the
complete data in a worksheet and workbook.
Customization is required before we take the final printout of the desired data. The print
preview is also explained with its significance.
3.2 OBJECTIVES
After going through this Unit, you should be able to
We can protect our worksheet data by using password protection against, unauthorized
access. An unauthorized user can make data inconsistent by deleting or editing the
important contents of important and confidential data. To safe guard our data, we have
to follow some steps.
But here we will start our journey of learning data security by protecting worksheet.
2
The following steps are to be followed to do so
Figure 1
3
Figure 2
Figure 3
4
Figure 4
In the following figure, we can see that if some unauthorized person tries to change
the contents of cell E5 ie marks of Mr. Arun Bakshi, Excel will generate a message
against the action and will not allow any kind of change in the cell value. It will also
suggest the procedure to make changes through proper procedure. Thus only the
authorized user will be able to make changes by unprotecting the worksheet by
supplying correct password.
Figure 5
Another important observation is, if you protect any sheet, some of the commands
will automatically become inactive / ineffective. For example, just observe the
figure6 given below. If you right click on unprotected sheet, named Comparison,
you can see there are 14 commands which are active at this time. But if you right
click on the protected sheet, named Result, only 7 commands are active in figure7,
rest of the 7 becomes inactive taking security of the data in to consideration.
5
Figure 6
Figure 7
I. Select the range of cells whose formulas you want to hide. You can also select nonadjacent
ranges (nonadjacent selection: A selection of two or more cells or ranges that don't touch
each other. When plotting nonadjacent selections in a chart, make sure that the combined
selections form a rectangular shape.) or the entire sheet.
II. On the Format menu, click Cells, and then click the Protection tab.
III. Select the Hidden check box.
IV. Click OK.
V. On the Tools menu, point to Protection, and then click Protect Sheet.
VI. Make sure the Protect worksheet and contents of locked cells check box is selected.
6
7
PRINTING EXCEL FORMULAS
Diagram 2
8
HOW TO HIDE ROWS AND COLUMNS
We can also hide particular rows and columns in Excel.
I. Select the rows above and below the hidden row(s), here, Row 6 and 9.
II. Right click and choose unhide
Diagram 3
9
STEPS TO HIDE COLUMN(S)
I. Select the rows above and below the hidden row(s), here, Row 6 and 9.
II. Right click and choose unhide
Diagram 4
10
HOW TO SET PASSWORD TO EDIT SPECIFIC RANGE
Now try to change the data in the protected range. Excel will ask you to enter the password.
11
Diagram 5
12
Diagram 6
When you try to change the data in password protected range the dialog box ask you to
enter the password as shown below.
Diagram 7
13
HOW TO GRANT SELECTED USERS EDIT RANGE WITHOUT PASSWORD
You can also allow particular users to edit the rang without password. To do so,
click on permissions in the Allow users to edit Ranges and choose the users from the
list of users to allow them editing with asking password.
Diagram 8
14
Diagram 9
15
3.4 UNLOCK CELLS
1. Select the cell or range of cells
2. Right click on the selected cell(s)
3. Click on Format Cell(s) command, figure 8
4. Select protection tab, figure 9
5. Click on Locked Check Box to uncheck it, being already checked, figure 10
6. Click OK
Figure 9
Figure 8
Figure 10
16
Steps to Protect Workbook
If you want to protect your data with more robust security mechanism you must
protect workbook along with worksheets. At the worksheet level protection, though
the data cells can not be altered or deleted, but the whole sheet can be deleted along
with the data. If this happens, there is no security for the data against well planned
threats to data.
Figure 11, shows the available commands with respect to worksheet named Result,
which is protected sheet. We can see, there is a command named delete which is
active, means we can delete sheet Result permanently by clicking on the delete
command. This shows another loop hole in the data security.
Figure 11
But if we protect workbook along with worksheet, in that case no unauthorized user can
delete the worksheet, thus data is more secure.
The steps to protect the workbook are given below and shown in figures12 and figure13.
1. Go to tools menu
2. Point to protection and select protect workbook
3. Write password (Optional), If you give password it will be asked to enter when
you try to unprotect the workbook. If password is not entered, user will not be
asked to enter the password to unprotect the workbook.
4. Click OK
Figure 12
17
Figure 13
Figure 14
Now one can easily, observe from the figure14 that, delete command along with other
four commands is inactive with respect to the active worksheet. Thus sheet data is more
safe and secure against intentional and unintentional deletion.
Note: Remember your password, if you forget it, you can not
unprotect your workbook. Also, passwords must be entered in the proper
manner taking in to consideration the lower case, upper case or
combination of both.
18
Check your progress 1
Question 2: Give reason, If you lock the cells you want to protect and still you can
change the entries in those cells.
19
3.5 UNPROTECT WORKSHEET
If you want to edit worksheet data, you have to unprotect the worksheet. The steps
to unprotect worksheet are given below.
Figure 15
Figure 16
20
Figure 17
It is always good to prevent than to cure. Thus before we take hardcopy of the document, it is
time and cost saving decision to see the preview of the document to make required changes in the
softcopy
Ways to access print view.
Figure 18
Figure 19 21
Print preview commands
Next
Displays the next page to be printed. If you have multiple worksheets selected and click next
when the last page of a selected worksheet appears, Excel displays the first page of the next
selected worksheet.
Previous
Displays the previous page to be printed. If you have multiple worksheets selected and click
Previous when the first page of a selected worksheet appears, Excel displays the last page of the
previous selected worksheet.
Zoom
Switches between a full-page view of a sheet and a magnified view. The Zoom feature does not
affect printing size. You can also switch between a full-page view and a magnified view of a
worksheet by clicking any area of the worksheet.
Depending on the resolution of your monitor, you may not see certain graphics, such as thin
borders, in full-page view.
Print
Lets you set printing options and then prints the selected worksheet.
Setup
Lets you set options that control the appearance of printed sheets.
Margins
Displays or hides margin handles that you can drag to adjust page margins,
header and footer margins, and column widths.
Switches to page break preview, in which you can adjust the page breaks on the active worksheet.
You can also resize the print area and edit the worksheet. The name of the button changes from
22
Page Break Preview to Normal View if you were in page break preview when you clicked Print
Preview
Normal View
Close
Closes the print preview window and returns to the previous view of the active worksheet.
Check your progress 2
Question 1: Fill in the blanks
1. To unprotect the workbook, choose tolls, proecteion,___Unprotect__ workbook.
2. The hidden elements ---don’t—print, when your print the worksheet.
3. Protection option in Tools menu shows total _4_ options.
4. To preview option is available in FILE menu.
5. Print preview helps to Edit the features, which are not as per the requirement of the
hardcopy.
Question 2: Explain the following print preview commands
1. Zoom
2. Page Break Preview
23
Figure 20
Figure 21
Figure 22
24
Figure 23
Figure 24
3.8 MARGINS
25
Margins are used to set page contents as per the need of the final appearance of
the printed paper.
Action Procedure
A single sheet Click the sheet tab. Click on source sheet name on the sheet
tab. If the desired sheet is not visible,
click on tab scrolling button and select
the desired sheet.
Two or more adjacent sheets Click the tab for the first sheet, and then
hold down SHIFT and click the tab for
the last sheet.
Two or more nonadjacent sheets Click the tab for the first sheet, and then
hold down CTRL and click the tabs for
the other sheets
Note: If sheet tabs have been color-coded, the sheet tab name will be
underlined in a user-specified color when selected. If the sheet tab is
displayed with a background color, the sheet has not been selected.
3. From the File menu, select Page Setup, and then click the Margins tab.
4. Do one of the following:
26
Set page margins
o Enter the required margin for the Top, Bottom, Left, and Right boxes.
o To change the distance from the top edge to the header, enter a new
margin size in the Header box.
o To change the distance from the bottom edge to the footer, enter a new
margin size in the Footer box.
These settings should be smaller than your top and bottom margin
settings, and larger than or equal to the minimum printer margins.
27
Note
• To see how the margins will affect the printed document, click Print
Preview before the document is printed. To adjust the margins in print
preview, click Margins, and then drag the black margin handles on either
side and at the top of the page.
• After entering page margins, save as option from menu can be used to make
worksheet and workbook templates to apply the customized page margins
to new worksheets or workbooks.
28
• Click Page Break Preview
• Do one of the following
I. To move a page break, drag the page break to a new location.
II. To insert a vertical or horizontal page break, select a row or column
below or to the right of where you want to insert the page break, right-
click, and then click Insert Page Break.
III. To remove a page break, drag the page break outside of the page break
preview area.
IV. To remove all manual page breaks, right-click any cell on the
worksheet, and then click Reset All Page Breaks.
Figure 25
29
Magnified View of Figure 26
Automatic page
Manual page break
break (Dotted Line)
Automatic
Manual page
page break
break
(Dotted Line)
Figure 26
Figure 27 Figure 28
30
Figure 29
Click on page break, hold &
drag outside the preview area
31
1. The ____in the page setup dialog box is where you can change the page
orientation and paper size.
2. When you select Excels’ page setup command the page set up dialog box offers
___ tabs.
3. ____ are the empty spaces around the four edges of a page.
4. You can change the margins ____ or ___ your enter data in a workbook.
5. _____ and _____are lines of text that you can print at the top and bottom of every
page in a print job.
3.10 SUMMARY
In this unit the main focus is given to data security and data printing options. This will
help us to protect our data from unauthorized access and also to get customized look of
data as per the requirement of the user. Various data protection techniques are discussed
like protecting data in specific cells or to protect complete worksheet and workbook
also. We have also learnt the techniques to unprotect data for any editing by the
authorized users. We have also learnt the ways to customize page margins, and page
breaks as per the need. At the end of the unit reader will be well versed with the
required skills and confidence to provide protection to data and customization of
worksheet data before taking the final printout.
3.11 ANSWERS/SOLUTIONS
Check your progress 1
Answer 1: Fill in the blanks
1. Worksheet
2. Locked Check, protection tab, format cells
3. Worksheet protection
4. Protection
5. Contents, Objects, Scenarios
Answer 2: You have to protect the worksheet by choosing tools, protection, protect
sheet. Choose any options you want from protect sheet dialog box. A password is
optional. Finally click OK.
32
Answer 2:
Zoom : Switches between a full-page view of a sheet and a magnified view. The Zoom
feature does not affect printing size. You can also switch between a full-page view and a
magnified view of a worksheet by clicking any area of the worksheet.
Depending on the resolution of your monitor, you may not see certain graphics, such as
thin borders, in full-page view.
Page Break Preview: Switches to page break preview, in which you can adjust the page
breaks on the active worksheet. You can also resize the print area and edit the
worksheet. The name of the button changes from Page Break Preview to Normal View if
you were in page break preview when you clicked Print Preview.
1. Page tab
2. Four.
3. Margins
4. Before, After
5. Header, Footer
Inc case of unexpected results in header and footer, select None in the suggestion list of
header and hooter. Now you can start all over and create you own custom header and
footer. It is also good to see the preview of the document before printing it. Click the
print preview button and see the appearance of header and footer information.
33