What is a Property in Excel Visual Basic?
Visual Basic is an object oriented programming language, even in Excel VBA. One of the traits an object can have in Excel VBA is a property. Properties are often user defined, and are a way to get multi-function benefits out of a given chunk of code.Setting a PropertyThe SET procedure is used to attribute a value to a property. For example, assigning a value of a range of cells in Excel to a named property would use the function Set Range(A1)=1000 [integer].Retrieving a Value from a PropertyTo get a value from a property, you use the GET procedure call in Visual Basic. The format is Get [property name]. A Get procedure will only work if the access level of the code module is capable of reading the access level specified.Property Data TypesA property can be any valid data type, whether numeric (numbers with decimals), integers (numbers without decimals) or string (blocks of text that are not evaluated as numbers). The data type of the property is set with the Set command.Using Propertie