Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Power excel 2016 with mrexcel Master Pivot Tables, Subtotals, Charts, VLOOKUP, IF, Data Analysis in Excel 2010–2013 (Bill Jelen) (z-lib.org).pdf
Скачиваний:
4
Добавлен:
14.08.2022
Размер:
49.75 Mб
Скачать

510

POWER EXCEL WITH MR EXCEL

 

 

 

CONTROL HOW YOUR NAME APPEARS IN COMMENTS

Problem: When I insert a comment, the name displayed in bold is Customer. Can I change this so everyone knows which comments I inserted?

Strategy: You can change the name that is dis- played in comments. To do so, you select File, Op- tions. At the bottom of the first category, edit the User Name to the name you would like displayed in comments.

Additional Details: Would you prefer no name in the comments? If you completely erase this field,

Excel will pick up the computer user name. If you put a space, the comment will appear with a space and a colon in row 1.

If you want to remove the name from a single comment, you can select the name and press Delete or backspace through the name. Be careful that your comment doesn’t end up in bold. Typically, the name will appear in bold, and the comment you type will appear in normal font.

When you backspace through the name and then begin to type, Excel will be in bold mode, and any comment you type will appear in bold.

To turn off the bold mode, press Ctrl+B before you begin to type the comment.

Figure 1321 The comment offers a generic name.

Figure 1322 Change comment name.

Figure 1323 You can’t completely remove it..

Figure 1324 Bold name. Normal comment.

Figure 1325 When you clear the comment, you are left in bold mode.

FORCE SOME COMMENTS TO ALWAYS BE VISIBLE TO PROVIDE A HELP SYSTEM

Problem: I’m sending out a worksheet to managers and division vice presidents in order to get their bud- get for next year. I need to include specific instructions for many of the cells in the worksheet.

Strategy: There are two primary techniques you can do this: cell comments and color-coding.

To use cell comments, for each comment you want to display 100% of the time, select the cell and choose

Review, Show/Hide Comment. Alternatively, right-click the cell and choose Show Comment. This will force those comments to be always visible.

PART 4: MAKING THINGS LOOK GOOD

511

 

 

Figure 1326 Toggle individual comments on or off.

To use color coding, you can make all comments meant for managers green, and you can make the vice presidents’ instructions blue. When managers and vice presidents open the file, they will have an easy-to- follow visual road map through their budget worksheet.

Additional Details: By default, comments will not be printed. You can choose either of two settings to control the printing of comments by following these steps:

1. From the Page Layout tab, choose the dialog launcher icon in the lower-right corner of the Page

Setup group.

2. In the Page Setup dialog, go to the Sheet tab and use the Comments dropdown to control the print- ing of comments.

Figure 1327 Control the printing of comments.

If you select As Displayed on Sheet from the Comments dropdown, the comment boxes will print in the size and format you have set up for all the displayed comments. This setting will not print comments that are hidden with only the red triangle visible. To make effective use of this setting, you would have to make a few comments visible, as described in this topic.

If you select At End of Sheet from the Comments dropdown, the comments will print in a separate section at the end of the printout. The only drawback to this method is that the comment printout indicates that a certain comment is attached to cell A50. Unless you print row and column headings (see "Debug Using a Printed Spreadsheet" on page 506), there is no way for the reader of the printed document to know which value on the sheet is located in cell A50.

 

 

CHANGE THE COMMENT SHAPE TO A STAR

 

4

Problem: I would like to jazz up a comment by changing it to a starburst or some other shape.

 

Strategy: This trick has become more difficult since Excel 2003, but it is possible with a little customiza-

 

tion of the Quick Access toolbar. The command you need is the Change Shape command. It appears on

 

many contextual ribbon tabs, but because Microsoft puts away the tabs when you unselect an object, the

 

command is not available to change the shape of a comment.

 

Instead, you have to add the icon to the Quick Access toolbar. Follow these steps:

 

1.

Right-click the Quick Access toolbar and choose Customize Quick Access Toolbar.

 

2.

In the top-left dropdown, choose All Commands.

 

3.

Scroll down to the Change Shape icon. Select this item and click the Add button.

 

4.

Click OK to close the Excel Options dialog.

 

When the Change Shape icon is on the Quick Access toolbar, follow these instructions to change the com-

 

ment shape:

 

1.

Add a regular comment to a cell.

 

2.

Select the cell that contains the comment.

 

3.

Choose Review, Edit Comment. The comment will appear, surrounded by diagonal lines.

 

4.

Left-click the diagonal lines to change them to dots.

 

5.

Select a new shape from the Change Shapes icon on the QAT.

 

512

POWER EXCEL WITH MR EXCEL

 

 

Figure 1328 Select a new shape.

The comment will change from a rectangle to a starburst. However, the comment is not large enough to show the entire comment.

Figure 1329 The shape changes, but the size is wrong.

6. Grab a corner resize handle and drag to make the shape larger.

7. On the Home tab, choose Middle Align from the vertical alignment icons. Choose Align Center from the horizontal alignment icons. Increase the font size to 10.

Results: The comment will appear as a starburst.

Figure 1330 The new comment shape.

Additional Details: You can grab the green rotate handle and rotate until you have the shape that best fits the text.

PART 4: MAKING THINGS LOOK GOOD

513

 

 

ADD A POP-UP PICTURE OF AN ITEM IN A CELL

Problem: I have a product catalog in Excel. My

 

sales reps will show the list of items to the buyer

 

in a retail store. Can I have pictures appear on de-

 

mand in Excel?

 

Strategy: You can add a pop-up picture to a cell.

 

When someone hovers the mouse over an item num-

 

ber, the picture will appear. Follow these steps:

 

1.

Select cell A4. Select Review, New Comment.

 

2.

The default comment will have your name

 

 

as the default text. Backspace to remove the

 

3.

name.

 

Using the mouse, click the diagonal-lines

 

 

border in order to change the border to a se-

 

 

ries of dots.

Figure 1331 Display pictures on demand

4.Right-click the dotted border and select Format Comment.

5.In the Format Comment dialog, go to the Colors and Lines tab. In the Fill Color dropdown, choose

Fill Effects. In the Fill Effects dialog, choose the Picture tab and then click the Select Picture button.

6.Browse to the location where you have product pictures stored. Select a digital image of the item and click Insert.

7.On the Fill Effects tab, click OK. When you return to the Format Comment dialog, a squished version of the image will appear in the Color dropdown. Don’t worry; the actual comment will look better.

8.Click OK to close the Format Comment dialog.

9.Use the lower-right handle to resize the comment. A red triangle will appear in cell A4.

10.Repeat steps 1–10 for each item in the catalog.

As promised, a picture of the product appears when you hover the mouse icon over the cell. Everyone thinks of Excel as being strictly for numbers. Adding pop-up pictures is a great trick for making your spreadsheets more of a sales tool.

ADD A POP-UP PICTURE TO MULTIPLE CELLS

Problem: I gave this book to my manager for Bosses’ Day. He saw “Add a Pop-up Picture of an Item in a

 

4

Cell,” and wants you to add pictures to dozens of cells. Is there an easy way?

 

 

Strategy: Figure out how to map the item numbers in the worksheet to your folder of pictures. In this

 

case, the pictures are stored in C:\qimage\. The file name is the letters “QI”, the part number, then “.jpg”.

 

You will have a different folder and likely a different prefix or suffix after the part number. Edit that line

 

of the macro below.

 

1.

Open your workbook in Excel.

 

2.

Type Alt+F11 then Insert, Module.

 

3.

Enter these few lines of code in the VBA Editor.

 

Sub AddABunch()

For Each cell In Selection

MyPic = “C:\Qimage\QI” & cell.Value & “.jpg” With cell.AddComment

.Shape.Fill.UserPicture MyPic

.Shape.Height = 300

.Shape.Width = 300 End With

Next cell

End Sub

4. Press Alt+Q to return to Excel.

5. Select the dozens of cells where your manager wants pictures. Run the macro. Pictures will be added to all the cells in the selection.

Additional Details: For the complete guide to learning VBA, check out VBA & Macros for Microsoft Excel 2013 (ISBN 978-0789748614 ) from QUE Publishing.