LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Member
 
Location: London
Posts: 78
Default Querying Properties programmatically

Hi there,

I have a question which has been bugging me for some time.

Is there any way to access Properties for any given object programmatically? For example, say I want to store (as I do) all properties for a given cell into a text file so that I can read them back, can you do it?

I wanted to do something like:

Open "properties.txt" for Output as 1
For Each xProp in ActiveCell.Properties
Write #1, xProp.Name; "="; xProp.Value
Next xProp
Write #1, ActiveCell.Properties.Count; " properties found."
Close 1

Which would give something like:

.Value = 0.532657
.Text = 0.533
.NumberFormat = "0.000"
.Width = 18
.Font.Name = "Tahoma"
|
|
170 properties found.

...and so on. I think you get the idea.

I realise the above doesn't work, but what I'm interested to know is if there is an Object that I can use which then exposes the Properties of an Object that follows - perhaps VBE. (something) ... .ActiveCell.Properties that will then enable something like the above to achieve what I desire?

Would much appreciate it if anyone has the answer to this.

Regards,
BizMark
 
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
Excel cell properties Will Excel Worksheet Functions 2 February 10th 06 07:07 PM
Sheet properties Name and (Name) nsv Excel Discussion (Misc queries) 2 January 24th 06 10:56 AM
Rogue Password on Properties and References ExcelMonkey Excel Discussion (Misc queries) 0 October 5th 05 01:16 PM
Unable to see Properties in Design View for controls ts1 Excel Worksheet Functions 0 September 22nd 05 07:55 PM
Where does Excel get the default properties without startup file? Questions from Christine Excel Discussion (Misc queries) 2 July 6th 05 07:47 PM


All times are GMT +1. The time now is 02:12 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"