Add a label or text box to a worksheet (2024)

Skip to main content

Microsoft

Support

Support

Sign in

Sign in with Microsoft

Sign in or create an account.

Hello,

Select a different account.

You have multiple accounts

Choose the account you want to sign in with.

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 More...Less

If someone's entering data inaccurately, or you think a coworker may be confused about how to enter data, add a label. A simple name, such as "Phone," lets others know what to put in a cell, and your labels can also provide more complex instructions.

You can add labels to forms and ActiveX controls.

Add a label (Form control)

  1. Click Developer, click Insert, and then click Label Add a label or text box to a worksheet (2).

    Add a label or text box to a worksheet (3)

  2. Click the worksheet location where you want the upper-left corner of the label to appear.

  3. To specify the control properties, right-click the control, and then click Format Control.

  1. Click Developer and then click Insert, and under ActiveX Controls, click Label Add a label or text box to a worksheet (4).

    Add a label or text box to a worksheet (5)

  2. Click the worksheet location where you want the upper-left corner of the label to appear.

  3. Click Design Mode Add a label or text box to a worksheet (6).

  4. Click the worksheet location where you want the upper-left corner of the label to appear.

  5. To specify the control properties, click Properties Add a label or text box to a worksheet (7).

    Tip:You can also right-click the label, and then click Properties.

    The Properties dialog box appears. For detailed information about each property, select the property, and then press F1 to display a Visual Basic Help topic. You can also type the property name in the Visual Basic Help Search box. This table summarizes the properties.

    Summary of label properties by functional category

If you want to specify

Use this property

General:

Whether the control is loaded when the workbook is opened. (Ignored for ActiveX controls.)

AutoLoad (Excel)

Whether the control can receive the focus and respond to user-generated events.

Enabled (Form)

Whether the control can be edited.

Locked (Form)

The name of the control.

Name (Form)

The way the control is attached to the cells below it (free floating, move but do not size, or move and size).

Placement (Excel)

Whether the control can be printed.

PrintObject (Excel)

Whether the control is visible or hidden.

Visible (Form)

Text:

Font attributes (bold, italic, size, strikethrough, underline, and weight).

Bold, Italic, Size, StrikeThrough, Underline, Weight (Form)

Descriptive text on the control that identifies or describes it.

Caption (Form)

How text is aligned in the control (left, center, or right).

TextAlign (Form)

Whether the contents of the control automatically wrap at the end of a line.

WordWrap (Form)

Size and position:

Whether the size of the control automatically adjusts to display all contents.

AutoSize (Form)

The height or width in points.

Height, Width (Form)

The distance between the control and the left or top edge of the worksheet.

Left, Top (Form)

Formatting:

The background color.

BackColor (Form)

The background style (transparent or opaque).

BackStyle (Form)

The color of the border.

BorderColor (Form)

The type of border (none or single-line).

BorderStyle (Form)

The foreground color.

ForeColor (Form)

Whether the control has a shadow.

Shadow (Excel)

The visual appearance of the border (flat, raised, sunken, etched, or bump).

SpecialEffect (Form)

Image:

The bitmap to display in the control.

Picture (Form)

The location of the picture relative to its caption (left, top, right, and so on).

PicturePosition (Form)

Keyboard and mouse:

The shortcut key for the control.

Accelerator (Form)

A custom mouse icon.

MouseIcon (Form)

The type of pointer that is displayed when the user positions the mouse over a particular object (for example, standard, arrow, or I-beam).

MousePointer (Form)

  1. Click Developer and then click Insert, and under ActiveX Controls, click Text Box Add a label or text box to a worksheet (8).

    Add a label or text box to a worksheet (9)

  2. Click the worksheet location where you want the upper-left corner of the text box to appear.

  3. To edit the ActiveX control, click Design Mode Add a label or text box to a worksheet (10).

  4. To specify the control properties, click Properties Add a label or text box to a worksheet (11).

    Tip:You can also right-click the text box, and then click Properties.

    The Properties dialog box appears. For detailed information about each property, select the property, and then press F1 to display a Visual Basic Help topic. You can also type the property name in the Visual Basic Help Search box. The following section summarizes the properties that are available.

    Summary of text box properties by functional category

If you want to specify

Use this property

General:

Whether the control is loaded when the workbook is opened. (Ignored for ActiveX controls.)

AutoLoad (Excel)

Whether the control can receive the focus and respond to user-generated events.

Enabled (Form)

Whether the control can be edited.

Locked (Form)

The name of the control.

Name (Form)

The way the control is attached to the cells below it (free floating, move but do not size, or move and size).

Placement (Excel)

Whether the control can be printed.

PrintObject (Excel)

Whether the control is visible or hidden.

Visible (Form)

Text:

Whether a word or a character is the basic unit used to extend a selection.

AutoWordSelect (Form)

Font attributes (bold, italic, size, strikethrough, underline, and weight).

Bold, Italic, Size, StrikeThrough, Underline, Weight (Form)

Whether selected text remains highlighted when the control does not have the focus.

HideSelection (Form)

The default run time mode of the Input Method Editor (IME).

IMEMode (Form)

Whether the size of the control adjusts to display full or partial lines of text.

IntegralHeight (Form)

The maximum number of characters a user can enter.

MaxLength (Form)

Whether the control supports multiple lines of text.

MultiLine (Form)

Placeholder characters, such as an asterisk (*), to be displayed instead of actual characters.

PasswordChar (Form)

Whether the user can select a line of text by clicking to the left of the text.

SelectionMargin (Form)

The text in the control.

Text (Form)

How text is aligned in the control (left, center, or right).

TextAlign (Form)

Whether the contents of the control automatically wrap at the end of a line.

WordWrap (Form)

Data and binding:

The range that is linked to the control's value.

LinkedCell (Excel)

The content or state of the control.

Value (Form)

Size and position:

Whether the size of the control automatically adjusts to display all the contents.

AutoSize (Form)

The height or width in points.

Height, Width (Form)

The distance between the control and the left or top edge of the worksheet.

Left, Top (Form)

Formatting:

The background color.

BackColor (Form)

The background style (transparent or opaque).

BackStyle (Form)

The color of the border.

BorderColor (Form)

The type of border (none or a single-line).

BorderStyle (Form)

The foreground color.

ForeColor (Form)

Whether the control has a shadow.

Shadow (Excel)

The visual appearance of the border (flat, raised, sunken, etched, or bump).

SpecialEffect (Form)

Whether an automatic tab occurs when a user enters the maximum allowable characters into the control.

AutoTab (Form)

Keyboard and mouse:

Whether drag-and-drop is enabled.

DragBehavior (Form)

The selection behavior when entering the control (select all or do not select).

EnterFieldBehavior (Form)

The effect of pressing ENTER (create a new line or move focus).

EnterKeyBehavior (Form)

A custom mouse icon.

MouseIcon (Form)

The type of pointer that is displayed when the user positions the mouse over a particular object (for example, standard, arrow, or I-beam).

MousePointer (Form)

Whether tabs are allowed in the edit region.

TabKeyBehavior (Form)

Specific to Text Box:

Whether the control has vertical scroll bars, horizontal scroll bars, or both.

ScrollBars (Form)

  1. Click File, click Options, and then click Customize Ribbon.

  2. Under Main Tabs , select the Developer check box, and then click OK.

A label identifies the purpose of a cell or text box, displays brief instructions, or provides a title or caption. A label can also display a descriptive picture. Use a label for flexible placement of instructions, to emphasize text, and when merged cells or a specific cell location is not a practical solution.

A text box is a rectangular box in which you can view, enter, or edit text or data in a cell. A text box can also be a static, and display data users can only read. Use a text box as an alternative to entering text in a cell, when you want to display an object that floats freely. You can also use a text box to display or view text that is independent of row and column boundaries, preserving the layout of a grid or table of data on the worksheet.

Label on a form control:

Add a label or text box to a worksheet (12)

An ActiveX control label:

Add a label or text box to a worksheet (13)

An ActiveX text box control:

Add a label or text box to a worksheet (14)

Notes:

  • To create a text box with a set of placeholder characters that accepts a password, use the PasswordChar property. Make sure that you protect the linked cell or other location in which the text is stored. Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols, such as Y6dh!et5, not House27. Passwords should be 8 or more characters;14 is better.

    And don't forget your password. If you do, we can't help you retrieve it. Office doesn't have a master key to unlock anything. Store passwords in a secure place away from the information they help protect.

  • To create a scrolling, multiple-line text box with horizontal and vertical scroll bars, set MultiLine to True, AutoSize and WordWrap to False, ScrollBars to 3, and LinkedCell to the cell address (such as D1) that you want to contain the text. To enter a new line, the user must press either CTRL+ENTER or SHIFT+ENTER, which generates a special character that is stored in the linked cell.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Add a label or text box to a worksheet (15)

Microsoft 365 subscription benefits

Add a label or text box to a worksheet (16)

Microsoft 365 training

Add a label or text box to a worksheet (17)

Microsoft security

Add a label or text box to a worksheet (18)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Add a label or text box to a worksheet (19)

Ask the Microsoft Community

Add a label or text box to a worksheet (20)

Microsoft Tech Community

Thank you for your feedback!

×

Add a label or text box to a worksheet (2024)

FAQs

Add a label or text box to a worksheet? ›

On the Layout tab, in the Labels group, click Data Labels, and then click the option that you want. For additional data label options, click More Data Label Options, click Label Options if it's not selected, and then select the options that you want.

How do I add a text label in Excel? ›

On the Layout tab, in the Labels group, click Data Labels, and then click the option that you want. For additional data label options, click More Data Label Options, click Label Options if it's not selected, and then select the options that you want.

How do I add a textbox to a label? ›

USING TEXT BOXES IN WORD LABEL TEMPLATES – INSERTING A TEXT BOX (AND TEXT) To insert a text box, click on the Insert tab at the top of the page and select Text Box. Word will give you a number of pre-formatted options along with a basic text box.

How do I add label options in Excel? ›

To format data labels, select your chart, and then in the Chart Design tab, click Add Chart Element > Data Labels > More Data Label Options. Click Label Options and under Label Contains, pick the options you want. To make data labels easier to read, you can move them inside the data points or even outside of the chart.

How do you add to a text box? ›

Go to Insert > Text Box and then select either Draw Text Box (where the text aligns horizontally on the page) or Vertical Text Box (where the text aligns vertically on the page). Select in the document, and then drag to draw the text box the size that you want.

What is the difference between a textbox and a label box? ›

Explanation: The label is used for display the some text in the webpage whereas the textbox is used for read the input from the user in the webpage . We will used the label keyword for declaring the label where used the textbox or text to declared the textbox in the webpage .

What is a text box in Excel? ›

Text boxes are independent of the Excel grid, and can be positioned anywhere on the sheet. Text boxes can be used to: add instructions to specific areas of a sheet. provide dynamic headings for reports. insert large numbers for dashboards.

How do I add labels to a variable in Excel? ›

Select the range you want to name, including the row or column labels. Select Formulas > Create from Selection. In the Create Names from Selection dialog box, designate the location that contains the labels by selecting the Top row,Left column, Bottom row, or Right column check box. Select OK.

Top Articles
6 Money Draining Habits You Need to Break
7 Unusual Ways Lazy People Are Boosting Their Bank Account
Truist Bank Near Here
Angela Babicz Leak
The Atlanta Constitution from Atlanta, Georgia
Top Scorers Transfermarkt
Gabriel Kuhn Y Daniel Perry Video
Kent And Pelczar Obituaries
Remnant Graveyard Elf
Wordscape 5832
Immediate Action Pathfinder
What to do if your rotary tiller won't start – Oleomac
Regal Stone Pokemon Gaia
Lenscrafters Huebner Oaks
The Murdoch succession drama kicks off this week. Here's everything you need to know
Char-Em Isd
Gdlauncher Downloading Game Files Loop
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Dtab Customs
Prestige Home Designs By American Furniture Galleries
The Exorcist: Believer (2023) Showtimes
Marvon McCray Update: Did He Pass Away Or Is He Still Alive?
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Joan M. Wallace - Baker Swan Funeral Home
Azur Lane High Efficiency Combat Logistics Plan
Seeking Arrangements Boston
Play It Again Sports Norman Photos
Danielle Ranslow Obituary
Barista Breast Expansion
Phantom Fireworks Of Delaware Watergap Photos
Tire Plus Hunters Creek
Random Bibleizer
Watertown Ford Quick Lane
UCLA Study Abroad | International Education Office
Umn Biology
Viduthalai Movie Download
Package Store Open Near Me Open Now
Ff14 Sage Stat Priority
Vistatech Quadcopter Drone With Camera Reviews
Pch Sunken Treasures
Craigslist Gigs Norfolk
In Branch Chase Atm Near Me
Lichen - 1.17.0 - Gemsbok! Antler Windchimes! Shoji Screens!
Maybe Meant To Be Chapter 43
The Complete Guide To The Infamous "imskirby Incident"
Enjoy4Fun Uno
Poe Self Chill
St Vrain Schoology
Mcoc Black Panther
Walmart Listings Near Me
Game Akin To Bingo Nyt
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5467

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.