+ Reply to Thread
Results 1 to 7 of 7

What is the difference between DIM as Object and DIM as OLEObject?

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    139

    What is the difference between DIM as Object and DIM as OLEObject?

    As indicated in my title, I'm trying to understand the difference between declaring all of my checkboxes as objects or as OLEObjects. Does it make a difference which one I do?

    Thanks
    Last edited by brharrii; 06-26-2013 at 12:42 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    Object is any object, it could be a shape, a worksheet, a range, another application etc

    OLEObject is specifically for an OLE object.

    You could use Object for an OLEObject but you wouldn't be able to use OLEObject for all the other objects.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    DIM'ing properly helps the AutoComplete function present good options.
    Gary's Student

  4. #4
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    ah ok, How can I tell if the object that I'm using is specifically an OLE object or if it is just a regular object?

    Thanks again

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    Why do you need to?

  6. #6
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    I'm trying to implement code that when a button is pressed all check boxes on the active sheet will be set to unchecked. I don't know if it would be more appropriate to dim them as ole objects or regular objects.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: What is the difference between DIM as Object and DIM as OLEObject?

    How are you identifying the checkboxes?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1