Consulting

Results 1 to 3 of 3

Thread: Sleeper: Show Code Pane in Main Window

  1. #1
    Administrator
    Chat VP
    VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location

    Sleeper: Show Code Pane in Main Window

    OK, OK, this may seem weird (that's ME), but I want to show a code pane withOUT opening the VBE window. i.e. I want the code pane displayed in front of the worksheet. This'll show the code pane, but the VBE window's also visible: Any Ideas?

    ThisWorkbook.VBProject.VBComponents("Module1").CodeModule.CodePane.Show

    TIA,
    John
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  2. #2
    VBAX Tutor
    Joined
    May 2004
    Location
    Germany, Dresden
    Posts
    217
    Location
    I'm just curiuos: why do you want to do this?
    If it's just for displaying the code you might as well try to copy the code from the real code pane anywhere you like (and maybe even copy it back), but I don't know a way to show just that part of the IDE.

  3. #3
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Quote Originally Posted by Steiner
    I'm just curiuos: why do you want to do this?
    If it's just for displaying the code you might as well try to copy the code from the real code pane anywhere you like (and maybe even copy it back), but I don't know a way to show just that part of the IDE.
    Hi Steiner,

    Well I've got this 'code library' in a workbook and I'm just trying to "polish it up". At the moment, if you select a code module from a list to look at, this takes you into the VBE window & you then have to exit. It'd be nice if the code module you wanted to look at was just brought out of the VBE window (so you can use its' own scroll bars to scroll thru it ... or enlarge the code-pane etc.)

    Regards,
    John
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

Posting Permissions

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