Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default List of property names and values for a given Object

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default List of property names and values for a given Object

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default List of property names and values for a given Object

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default List of property names and values for a given Object

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default List of property names and values for a given Object

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I find out property values for each control object? Bob Allen[_2_] Excel Discussion (Misc queries) 3 July 30th 09 11:23 PM
List of property names and values for a given object. MichaelMalone Excel Worksheet Functions 0 September 16th 05 09:49 PM
Runtime Error 380 – Could not set the list property. Invalid property value BernzG[_16_] Excel Programming 2 August 21st 05 10:10 PM
Assign values to names in a drop-down list? Barry L Excel Discussion (Misc queries) 3 March 8th 05 04:21 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM


All times are GMT +1. The time now is 10:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"