Muokkaa

Jaa


Worksheet.Next property (Excel)

Returns a Worksheet object that represents the next sheet.

Syntax

expression.Next

expression A variable that represents a Worksheet object.

Remarks

If the object is a range, this property emulates the Tab key, although the property returns the next cell without selecting it.

On a protected sheet, this property returns the next unlocked cell. On an unprotected sheet, this property always returns the cell immediately to the right of the specified cell.

Example

This example selects the next unlocked cell on Sheet1. If Sheet1 is unprotected, this is the cell immediately to the right of the active cell.

Worksheets("Sheet1").Activate 
ActiveCell.Next.Select 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.