June 16, 2012, 11:28 pm by Tushar Mehta
I updated the installation instructions for Office VBA add-ins to include Office 2010, Office 2007, and Office 2003. The updated material is at http://www.tushar-mehta.com/excel/software/installation/index.htm.
Tushar Mehta
Tags:
add-in,
Excel 2003,
Excel 2007,
Excel 2010,
Excel Basic,
installation,
macro warning,
security,
VBA Basic Category:
Excel 14,
Excel Basic,
Excel12,
VBA,
VBA Basics |
Comment
June 12, 2012, 5:21 pm by Tushar Mehta
There has been many an occasion when I have wanted programmatic access to the maximum or minimum or smallest value of a data type. Some programming languages have built-in support through names like MaxInt. VBA, unfortunately, is not one of them.
I decided to “translate” the documentation defining the different data types into code. The functions Max{datatype}, Min{datatype}, and Smallest{datatype} return the appropriate value. The Max and Min functions should be self-evident. The Smallest function returns the smallest non-zero value supported by the data type. Since this is simply 1 for all data types associated with integers (Byte, Integer, Long, LongPtr, LongLong, and Currency), Smallest is defined only for data types associated with real numbers (Single, Double, and Decimal).
For a version in a page by itself (i.e., not in a scrollable iframe as below) visit http://www.tushar-mehta.com/publish_train/xl_vba_cases/1003%20MinMaxVals.shtml
Tushar Mehta
Tags:
Excel 2007,
Excel 2010,
excel 2010 32-bit,
excel 2010 64-bit,
VBA,
vba 6,
vba 7,
VBA Basic Category:
Excel 14,
Excel12,
VBA,
VBA Basics |
13 Comments
March 21, 2012, 6:00 am by Tushar Mehta
By default, when the user selects a cell, Excel highlights the row and column by changing the color of the associated row and column headers. This tip shares multiple ways to highlight the row and column in more obvious ways as well as a way to highlight the cell in a specific column in the same row.


The emphasis is on the use of conditional formatting to accomplish the task. The minimal VBA code required to make it work is the same single executable statement for all of the different highlighting options!
For a version in a page by itself (i.e., not in a scrollable iframe as below) visit http://www.tushar-mehta.com/publish_train/xl_vba_cases/0121%20highlight%20row%20and%20col%20of%20selected%20cell.shtml
Tushar Mehta
Tags:
conditional formatting,
Excel 2007,
Excel 2010,
highlight row column,
user interface,
VBA Basic,
Visual Display Category:
Columns and Rows,
Excel 14,
Excel Basic,
Excel12,
User Interface,
VBA,
VBA Basics |
13 Comments