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.
Download the book in PDF, ePub, Kindle for a complete version.
Exercise 22: Column Width function
To create this Function, execute the following steps
1. Create a UDF Columnwidth() ( User Defined Function)
- Open Excel VBA (Alt + F11)
- Insert a New Module
- In the Project Explorer, double click on the Module
- Add the following code line:

This Code lines will create function Columnwidth() In Cell B1 Type
=Columnwidth(A1)

In Excel Sheet
click on
Home
Cells
Format
Column width to know the size of the Column
