Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 824 Bytes

Excel.Range.AddComment.md

File metadata and controls

47 lines (28 loc) · 824 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.AddComment method (Excel)
vbaxl10.chm144222
vbaxl10.chm144222
Excel.Range.AddComment
89bbacad-4655-bcc1-8010-2ab367cc7b31
05/10/2019
medium

Range.AddComment method (Excel)

Adds a comment to the range.

Syntax

expression.AddComment (Text)

expression A variable that represents a Range object.

Parameters

Name Required/Optional Data type Description
Text Optional Variant The comment text.

Return value

Comment

Example

This example adds a comment to cell E5 on worksheet one.

Worksheets(1).Range("E5").AddComment "Current Sales"

[!includeSupport and feedback]