Excel VBA formulas for Spreadsheet by Sharath Kumar Peechara - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Exercise 23: Rowheight() function

 

To create this Function, execute the following steps

1. Create a UDF Rowheight() ( User Defined Function)

  1. Open Excel VBA (Alt + F11)
  2. Insert a New Module
  3. In the Project Explorer, double click on the Module
  4. Add the following code line:

This Code lines will create function Rowheight()

In Cell B1 Type

= Rowheight(A1)

img47.jpg

In Excel Sheet

click on img46.png Home img46.png Cells img46.png Format img46.png Row height to know the size of the Column