Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to remember how to list all of the property names and values for
a given object. eg. I want to list all of the properties for a given cell range; the names of the properties and their values. Thank you Michael |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
refer to the excel object model to be sure what "ALL" you want but generic
approach = you want to cycle through the properties collection of the Cell/Range object... getting Name and value dim myCell as range dim MyProp as object set mycell = your address here for each myprop in cell.properties msgbox prop.name msgbox prop.value next myprop "MichaelMalone" wrote: I am trying to remember how to list all of the property names and values for a given object. eg. I want to list all of the properties for a given cell range; the names of the properties and their values. Thank you Michael |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks "Vacation's Over", but ".Properties" is not a valid property or method
in Excel 2002. Is this a property of the most recent version of Excel ? Yours Michael "Vacation's Over" wrote: refer to the excel object model to be sure what "ALL" you want but generic approach = you want to cycle through the properties collection of the Cell/Range object... getting Name and value dim myCell as range dim MyProp as object set mycell = your address here for each myprop in cell.properties msgbox prop.name msgbox prop.value next myprop "MichaelMalone" wrote: I am trying to remember how to list all of the property names and values for a given object. eg. I want to list all of the properties for a given cell range; the names of the properties and their values. Thank you Michael |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry. I put code in for generic property search then adjusted for your cell
question. The answer I think is NO. To see why step into my code (F8) and once past the line set mycell = your address here ' (try activecell) rightclick on mycell in code and add a watch, at the bottom of the page you will see all the information Excel tracks about that cell. Way too much to represent in a property dump. This view may be what you were looking for and/or will give you ideas on what is available and how to access specifics in code. Good luck "MichaelMalone" wrote: Thanks "Vacation's Over", but ".Properties" is not a valid property or method in Excel 2002. Is this a property of the most recent version of Excel ? Yours Michael "Vacation's Over" wrote: refer to the excel object model to be sure what "ALL" you want but generic approach = you want to cycle through the properties collection of the Cell/Range object... getting Name and value dim myCell as range dim MyProp as object set mycell = your address here for each myprop in cell.properties msgbox prop.name msgbox prop.value next myprop "MichaelMalone" wrote: I am trying to remember how to list all of the property names and values for a given object. eg. I want to list all of the properties for a given cell range; the names of the properties and their values. Thank you Michael |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for trying "Vacation's Over".
"Vacation's Over" wrote: Sorry. I put code in for generic property search then adjusted for your cell question. The answer I think is NO. To see why step into my code (F8) and once past the line set mycell = your address here ' (try activecell) rightclick on mycell in code and add a watch, at the bottom of the page you will see all the information Excel tracks about that cell. Way too much to represent in a property dump. This view may be what you were looking for and/or will give you ideas on what is available and how to access specifics in code. Good luck "MichaelMalone" wrote: Thanks "Vacation's Over", but ".Properties" is not a valid property or method in Excel 2002. Is this a property of the most recent version of Excel ? Yours Michael "Vacation's Over" wrote: refer to the excel object model to be sure what "ALL" you want but generic approach = you want to cycle through the properties collection of the Cell/Range object... getting Name and value dim myCell as range dim MyProp as object set mycell = your address here for each myprop in cell.properties msgbox prop.name msgbox prop.value next myprop "MichaelMalone" wrote: I am trying to remember how to list all of the property names and values for a given object. eg. I want to list all of the properties for a given cell range; the names of the properties and their values. Thank you Michael |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I find out property values for each control object? | Excel Discussion (Misc queries) | |||
List of property names and values for a given object. | Excel Worksheet Functions | |||
Runtime Error 380 – Could not set the list property. Invalid property value | Excel Programming | |||
Assign values to names in a drop-down list? | Excel Discussion (Misc queries) | |||
Runtime error 380: Could not set the List property. invalid property value of listbox | Excel Programming |