+ Reply to Thread
Results 1 to 6 of 6

Identify object associated with a code pane

  1. #1
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Identify object associated with a code pane

    The following code iterates through all the open projects and the code panes associated with a project.

    It does not identify the type of object (Microsoft Excel Object, Form, Module, Class Module) that the code pane is linked to. Is there are way of identifying that association?

    Please Login or Register  to view this content.
    Regards,

    Stephen

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Identify object associated with a code pane

    It doesn't iterate through code panes, it iterates through the VBComponents, and they each have a Type property...
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Re: Identify object associated with a code pane

    Thank you. They do indeed have a type property, but since this is an integer value it is not very meaningful. Is there a list of the descriptions for each integer value?

  4. #4
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,176

    Re: Identify object associated with a code pane

    How about

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Re: Identify object associated with a code pane

    Quote Originally Posted by ByteMarks View Post
    How about
    Thank you. I was getting there but your approach is significantly more comprehensive.

  6. #6
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,176

    Re: Identify object associated with a code pane

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VB Code to freeze pane
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-19-2018, 04:01 PM
  2. Can some pane and scrollcolumn expert explain this split window code?
    By Oppressed1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2017, 11:15 PM
  3. [SOLVED] Please Help me Identify this object/function
    By dy137 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2017, 04:02 AM
  4. Controlling the Preview Pane or Details Pane
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2016, 09:28 AM
  5. How to identify Object library in excel VBAproject ?
    By thiskeep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2013, 04:30 PM
  6. [SOLVED] Generic Current Object Reference Inside that Object's Code
    By Aegwyn11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2012, 01:23 PM
  7. [SOLVED] How do I JUMP from pane 1 to Pane 2?
    By Ken Jarvis in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-14-2005, 01:55 PM

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