PDA

View Full Version : object question



lvito001
09-14-2007, 09:04 AM
when declaring something "As Object"... what does that mean exactly?

Bob Phillips
09-14-2007, 09:15 AM
It means that you are creating a generic object variable, and can set it to any object type, such as a Range, a workbook, a shape.

It is most commonly used when you would be accessing many different object types, but you don't know in advance what types you will encounter, such as iterating through the controls on a userform (where you can have texboxes, buttons, checkboxes, etc.).

lvito001
09-14-2007, 09:19 AM
thanks very much, xld! :clap: