LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default iterating through all properties of an object

Would one of you mind showing me what the code would then appear like?
I have xl2002.

(Wild Bill) wrote in message ...
Thanks. Clear and specific :)

On Thu, 21 Aug 2003 04:31:34 -0700, keepitcool
wrote:

Wild Wild Bill...

don't draw your sixshooter on me :)

you need CallByName (as used in chip's code)
but.., you'll find it only in VBA6 (xl2000+)
and... there's NO WAY ELSE.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage:
http://members.chello.nl/keepitcool


(Wild Bill) wrote:

1. I have racked my brains trying and searched the web and groups for
hours on this. What do I'd like to do is run through a sheet's
properties. Essentially:

Dim prp As Property
For Each prp In Sheets(1).Properties

I've tried all kinds of variations on Sheets(1). Except perhaps the
correct one.
DAO 3.6 is enabled.
Chip's GetInfo disclaims use on XL97.

2. I would like to access a "variable" property in a sub, a la
call MySub("activecell.Font")
sub MySub(prp as Property)
debug.print prp.name
end sub

Obviously all of the code above is faulty, but I hope it illustrates
what I'm trying to achieve. I confess that I am swimming over my
head, being less than an expert on VB(A) objects.

 
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
Iterating files in folder Minerva Excel Worksheet Functions 1 January 11th 06 10:00 AM
Iterating through string in a cell joeboe Excel Discussion (Misc queries) 1 October 7th 05 08:52 AM
Excel: how set default for Format Object Properties to Move and s thejman Setting up and Configuration of Excel 0 September 19th 05 04:29 PM
iterating checkboxes [email protected] Excel Discussion (Misc queries) 1 May 11th 05 08:42 PM
Iterating through row cells on column Match, help please. FrankBooth Excel Programming 0 July 8th 03 03:00 PM


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