FindColumn Function |
FindColumn is an Excel™ VBA Function that will look for the first occurrence of the passed string in a column and return the column
number. There are three possible parameters, the first one is required the others are optional. These parameters are:
To illustrate the use of FindColumn we will use the following worksheet named "Demo". Using the above worksheet the following code would return value of 4 (i.e the first column with the word "Value" in it) FindColumn("Value", "Demo", True) However coding:FindColumn("Value", "Demo", False) would return a value of 0 as no column contains only the word "Value".if, however you code: FindColumn("Value", "Book Demo", False) a value of 5 will be returned.FindColumn will find the text in any row, not just the first, for example: FindColumn("Eisenhower", "Demo") will return a value of 6.Note: FindColumn requires the subroutine WorksheetExtant to be available. The FindColumn function is avaliable from here.As normal the usual disclaimers apply. |
||
Number of unique visitors 365
Copyright © Abbydale Systems LLC 2015-2024
Abbydale Systems LLC Lic. 802696149. All rights reserved.