Results 1 to 7 of 7

Thread: No Excel Help in VB6 IDE

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2015
    Location
    Peterborough, UK
    Posts
    38

    Angry No Excel Help in VB6 IDE

    I'm running VB6 under Wiondows 11, quite happily, except, when adding Excel terms to my VB6 code, I cannot get any Help, (F1), for any of the Excel terms.

    Here's an example:
    Code:
      With xlChartObj.Chart
                    .SetSourceData Source:=ActiveSheet.Range("A2:D26")
                    .ChartType = xlXYScatterLines
                    .HasTitle = True
                    .ChartTitle.Text = "Room Temperature"
                    .HasLegend = True
                    .Legend.Position = xlLegendPositionBottom
    If I select, for example, the ".Legend.Position", then F1, I get

    "Unable to display help", with an OK and a Help button.

    I get the same result for selecting any of the terms that begin with "."

    I'm guessing I have a path definition missing, but which, and where?

    Thanks to anyone who can help

    Jim

  2. #2
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,909

    Re: No Excel Help in VB6 IDE

    The Excel object hierarchy isn't in the VB6 MSDN. To get that, you have two approaches: 1) find a copy of the old VBAXL10.CHM and then struggle to get that to work on your computer, or 2) go to https://learn.microsoft.com/en-us/of...l/object-model and use the online Excel VBA help (and this is probably the better of the two options).
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  3. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: No Excel Help in VB6 IDE


  4. #4
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,261

    Re: No Excel Help in VB6 IDE

    And i would be surprised shown code compiles in VB6

    With xlChartObj.Chart
    .SetSourceData Source:=ActiveSheet.Range("A226")
    .ChartType = xlXYScatterLines
    .HasTitle = True
    .ChartTitle.Text = "Room Temperature"
    .HasLegend = True
    .Legend.Position = xlLegendPositionBottom
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2015
    Location
    Peterborough, UK
    Posts
    38

    Re: No Excel Help in VB6 IDE

    Why?

    Seems correct to me, and compiles quite OK.

  6. #6
    New Member
    Join Date
    Feb 2026
    Posts
    2

    Re: No Excel Help in VB6 IDE

    I agree with Elroy the VB6 IDE which is a standalone VB editor it and help is no longer supported by Microsoft and attempting to use Microsoft Office VBA coding linking to help for Excel appears is not supported.

    One way you can get some help is to create and troubleshoot your code using it in an Excel UserForm or module in Excel.

    Create the objects and Set the value for your objects in the userform and when you code the object parameters in the userform F1 will open the Excel help for the parameter.

    Hope this helps.

  7. #7
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,261

    Re: No Excel Help in VB6 IDE

    You all assume this is written in VB6

    i wouldn't be surprised if above is actually written in VBA in Excel,
    because an alone standing "ActiveSheet" is a red flag to me.

    If it were written in VB6, it assumes he has a reference to the Excel-Objects (Late Binding not withstanding), but then he gets into Namespacing, which starts at the Workbook (I'll ignore "Excel-Application")
    So, an alone standing "ActiveSheet" should never be able to compile in VB6

    EDIT: Now would you look at that. OP's next thread is in the Office-Forum, and it's about........ Ta Daaaa: VBA
    Last edited by Zvoni; Feb 17th, 2026 at 07:24 AM.
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width