Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2014, 09:44 AM
excelledsoftware excelledsoftware is offline List of Objects for CreateObject Windows 7 64bit List of Objects for CreateObject Office 2003
IT Specialist
List of Objects for CreateObject
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default List of Objects for CreateObject

Hello everyone,

I searched this forum for a list of objects that can be created using the CreateObject function.

I have also searched online and on the Microsoft development site but what I am noticing is that there is not a lot of information out there.

So here is my question using the CreateObject function what all can you create? Is there a list of the objects that can be created?

The only ones that I know of so far are below:
Code:
CreateObject("InternetExplorer.Applicaton")
CreateObject("Excel.Sheet")
CreateObject("Excel.Application")
CreateObject("Word.Application")
CreateObject("PowerPoint.Application")
Now these are just basic ones I know there are filesystem ones out there as well as httprequests but what I am looking for is a list of all the objects that can be created or at least the major ones. I notice that even though the above objects seem to follow a simple syntax you cannot simply create a notepad object like so
Code:
CreateObject("Notepad.Application")
Maybe thats because VBA cannot communicate with Notepad.



Anybody know of more of the major CreateObjects or a list of them? That would be awesome to add to my library.

Thanks for your help.
Reply With Quote
  #2  
Old 09-14-2014, 06:56 PM
macropod's Avatar
macropod macropod is offline List of Objects for CreateObject Windows 7 64bit List of Objects for CreateObject Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The list of objects that created depends on what applications other than the one you're using are installed on the system that can exchange data with the one you're working with. Hence, there can never be a definitive list.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-14-2014, 07:59 PM
excelledsoftware excelledsoftware is offline List of Objects for CreateObject Windows 7 64bit List of Objects for CreateObject Office 2003
IT Specialist
List of Objects for CreateObject
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Ok that makes sense but what are some of the other ones you know. I know there is FileSystemObject and others. What are the most popular ones.
Reply With Quote
  #4  
Old 09-14-2014, 08:31 PM
macropod's Avatar
macropod macropod is offline List of Objects for CreateObject Windows 7 64bit List of Objects for CreateObject Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Basically, it could be anything that is VBA-compliant. Some you've missed out include the following MS-Office objects:
CreateObject("Outlook.Application")
CreateObject("Access.Application")
CreateObject("MSGraph.Application")
CreateObject("Visio.Application")

Other common ones include Adobe Acrobat Pro objects:
CreateObject("AcroExch.App")
CreateObject("AcroExch.AVDoc")

Then there are others, like:
CreateObject("ADODB.Recordset")
CreateObject("ADODB.Connection")
use for database queries, and:
CreateObject("Scripting.FileSystemObject")

See also: http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 09-14-2014, 08:47 PM
excelledsoftware excelledsoftware is offline List of Objects for CreateObject Windows 7 64bit List of Objects for CreateObject Office 2003
IT Specialist
List of Objects for CreateObject
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Thanks very much for the link that helps me out a ton. I would assume that any kind of Microsoft application could be a created object but this is not the case with notepad. Even though I don't see any reason to ever have a notepad object since you can just read and write directly to text files pretty easily. Basically it seems like all of the office applications, Internet Explorer, Adobe Objects (Didnt know that one) and FileSystemObjects. Anything else would be interesting to know.

Thanks again.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't move objects with precision MLF PowerPoint 3 07-31-2014 04:03 AM
List of Objects for CreateObject Query list of objects and properties in VBA bshawnr Word VBA 1 08-22-2013 11:03 PM
List of Objects for CreateObject Convert equation objects to inline objects sumjoh Word VBA 1 01-29-2013 08:38 PM
List of Objects for CreateObject Shape Objects Space Cowboy PowerPoint 4 10-04-2010 07:14 PM
NOprintable objects shadowbat Drawing and Graphics 0 07-05-2010 10:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft