Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / June 2006

Tip: Looking for answers? Try searching our database.

How get a list of OLEFormat.Object properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
matthewmark - 19 Jun 2006 17:58 GMT
I've figured out how to add text boxes, labels, combo boxes etc.

I've spent the last two hours trying to find here and in google, where to
get a list of properties for these objects and the proper drill down to
access them.

I manually added a label, then right clicked and accessed properties. I can
see see the properties, however they don't seem to be logically accessible.

I can access the "Caption" property but not the "font" property. See below.

Set shp =
app.ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject(Left:=dblLeft,
Top:=dbltop, Width:=dblWidth, Height:=dblheight, ClassName:="Forms.Label.1",
Link:=msoFalse)

  With shp.OLEFormat.Object
    .Caption = strtext
    .Font = "Arial"
  End With

NOTE: the caption property which is on the same level as Font property
works. It's accessible in the code above. What on earth is going on here and
I guess the real question is where do I find the heirarchy of the properties
so I can access them and change them as needed?

Thanks

Signature

Matthew Mark

Steve Rindsberg - 19 Jun 2006 21:40 GMT
> I've figured out how to add text boxes, labels, combo boxes etc.
>
[quoted text clipped - 16 lines]
>      .Font = "Arial"
>    End With

This should do it:

.Font.Name = "Arial"

How you're supposed to figure that out escapes me, though.  
Object Brower should help, though.
Look up Checkbox
Click Font in "members of checkbox"
At the bottom it says Property Font as NewFont
Click NewFont to see the properties available for your use.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.