Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


December 08, 2003

How to Examine Components with Word’s Object Browser


RSS
View this exclusive article with VIP access -- click here to join |
See More Office 2000 Articles Here | Reprints | Or sign up for our VIP Monthly Pass!
Main Article    Gain Functionality with Controls

You can use Microsoft Office tools to examine a component's functionality. In Microsoft Word 2000 or later, for example, you select Macros or Macro (depending on the Word version) from the Tools menu, then choose Visual Basic Editor or Microsoft Script Editor-either works. If neither of these are selectable options at this point, you must use the existing menu items to record a new macro, stop the recording, then go in and edit the new macro you created.

Within the Visual Basic Editor, press F2 or select Object Browser from the View menu. From the Tools menu in the Object Browser, select the Reference option to open the References dialog box. Add a reference to your chosen component. For example, Figure A shows a sample dialog box in which I've added a reference to the Windows Script Host Object Model.

After you add the reference, select your component in the drop-down list at the top of the Object Browser. For example, in the Object Browser that Figure B shows, I selected IWshRuntimeLibrary, which is the internal name for the Windows Script Host (WSH) object model. The Object Browser lists the component's objects in the Classes pane and those objects' methods, properties, and events in the Members of pane. Highlighting a method, property, or event prompts the Object Browser to display the syntax in the pane at the bottom of the Object Browser. For example, as Figure B shows, when you highlight the FileSystemObject object's CreateTextFile method, the syntax for that method appears in the bottom pane. . . .

Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Where is Microsoft NetMeeting in Windows XP?

...


Related Events Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing