WorksheetFunction.Tanh Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns the hyperbolic tangent of a number.

expression .Tanh(Arg1)

expression A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

Required

Double

Number - any real number.

Return Value

Double

The formula for the hyperbolic tangent is:

worksheet function tanh

Show: