Results 1 to 17 of 17

Thread: Does installing Microsoft Office break VB6?

  1. #1

    Thread Starter
    Member Tabi's Avatar
    Join Date
    Jan 2024
    Location
    Argentina, Santa Fe
    Posts
    59

    Does installing Microsoft Office break VB6?

    I think this post is more of a "Warning" than a request for help.

    I hardly use Office. Only Excel sporadically. I had an old version 2003, which for me was more than enough, but it sometimes causes problems in W11. So I installed the latest version of Office for a job, and the VB6 IDE stopped working.

    Has this happened to anyone? Can it be fixed?

    Thanks!

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    6,253

    Re: Does installing Microsoft Office break VB6?

    I've got an issue with it breaking addins but the IDE still works; though I'm using 2021 on Win10.

  3. #3

    Thread Starter
    Member Tabi's Avatar
    Join Date
    Jan 2024
    Location
    Argentina, Santa Fe
    Posts
    59

    Re: Does installing Microsoft Office break VB6?

    Sorry, I expressed myself inaccurately, what you say happens to me. The IDE starts without problems, but when loading a project, a multitude of errors appear, caused by lack of References and/or Components.

  4. #4
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    786

    Re: Does installing Microsoft Office break VB6?

    Quote Originally Posted by Tabi View Post
    ... when loading a project, a multitude of errors appear, caused by lack of References and/or Components.
    If you had references to an older version of Office then you'll have to update those reference to use the newly installed version instead.

    Alternatively, you might be able to use Late Binding instead, and remove the need for the Excel reference[s]:

    Code:
    ' Instead of ... 
    Dim oExcel As Excel.Application 
    Set oExcel = new Excel.Application 
    
    ' ... Use ... 
    Dim oExcel As Object ' Excel.Application
    Set oExcel = CreateObject( "Excel.Application" )
    Of course, you lose all the intellisense in the IDE but, you get used to that after a while (and can always "ask" the Macro Recorder in Excel if you need to know how to do something!)

    Regards, Phill W.

  5. #5
    Fanatic Member
    Join Date
    Aug 2011
    Location
    Palm Coast, FL
    Posts
    628

    Re: Does installing Microsoft Office break VB6?

    I recently installed Office 365 and didn't notice any problems with VB6 due to that.

  6. #6
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,163

    Re: Does installing Microsoft Office break VB6?


  7. #7
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    809

    Re: Does installing Microsoft Office break VB6?

    Open your VBP file with Notepad, and post the lines that begin with Object= and Reference= here.

    I have stopped using MS Office and have been using LibreOffice instead, which could open and save Excel/Word/PowerPoint files, so I never looked back. It could open MDB files, but through ODBC or OleDB? I prefer SQLite, and could easily use a GUI such as "DB Browser for SQLite", to create a DB, or generate SQL statements.

    It's a good thing though that you are running into problems, just in case the end user is using MS Office.

  8. #8
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,500

    Re: Does installing Microsoft Office break VB6?

    Yes...it has all the telltale signs of the incorrect version in the References. Had that issue. I have 2021 on one computer (actually on two but I don't see it in programs installed). I had to change the reference on that one computer to use it instead of 2007. On the one computer that (sorta) has both, when I start Office, 2007 formats show up. But when I create an office file (e.g. Docx, XLSX, etc) using VB6, it opens it in 2021 (even though my computer doesn't show 2021 as an installed program!!). THAT is confusing. But, for you, change the reference to the proper Office installation.
    Sam I am (as well as Confused at times).

  9. #9
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    809

    Re: Does installing Microsoft Office break VB6?

    See this article as well:

    Fixing the Microsoft Windows Common Control Library (MSCOMCTL.OCX) Security Update:
    http://www.fmsinc.com/microsoftacces...rols/mscomctl/

  10. #10
    Addicted Member
    Join Date
    Feb 2015
    Posts
    184

    Re: Does installing Microsoft Office break VB6?

    No problems here with VB6 projects after installing MS Office on Windows 10 but my projects are all self-contained i.e. no external MS controls are used.

  11. #11
    Frenzied Member
    Join Date
    Jun 2012
    Location
    Australia
    Posts
    1,165

    Re: Does installing Microsoft Office break VB6?

    My projects are used on several machines (all W10) running different versions of Office, so I always use late Binding to avoid any problem (although admittedly I could just change references as required for each machine).
    Thanks all !

  12. #12
    Lively Member
    Join Date
    Aug 2023
    Posts
    80

    Re: Does installing Microsoft Office break VB6?

    I had that issue a few times so every time a prepare a new VM I install VB6 the latest. I upgraded a few times Office (specially from 2003 to >2010) or installed VS2019 with VB6 previously installed and it started to fail in many ways.

    My path is usually OS->Office->VS2019->VB6.

  13. #13
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    513

    Re: Does installing Microsoft Office break VB6?

    I wanted to take the opportunity to mention that I am using LibreWriter, and it works much better in aspects of instantiating and being stuck (meaning that it does not get stuck like Office).

  14. #14
    Lively Member
    Join Date
    Aug 2023
    Posts
    80

    Re: Does installing Microsoft Office break VB6?

    Quote Originally Posted by tmighty2 View Post
    I wanted to take the opportunity to mention that I am using LibreWriter, and it works much better in aspects of instantiating and being stuck (meaning that it does not get stuck like Office).
    99% of private users could use OnlyOffice as a MS Office replacement but in the enterprise world you really can't survive without MS, it's a standard (specially Excel).

    Sometimes you cant' choose other software, no matters if it's better or not.

  15. #15
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,500

    Re: Does installing Microsoft Office break VB6?

    Quote Originally Posted by zx81sp View Post
    99% of private users could use OnlyOffice as a MS Office replacement but in the enterprise world you really can't survive without MS, it's a standard (specially Excel).

    Sometimes you cant' choose other software, no matters if it's better or not.
    Not sure where you are getting your data....as a matter of a fact, have never HEARD of OnlyOffice. EVERYONE I know of who has a MS OS computer uses MS Office...some version of it.
    Sam I am (as well as Confused at times).

  16. #16
    Frenzied Member VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,004

    Wink Re: Does installing Microsoft Office break VB6?

    There are many Office clones (which all fall short one way or another) for those who wish to escape the Micro$oft monopoly!

  17. #17
    Lively Member
    Join Date
    Aug 2023
    Posts
    80

    Re: Does installing Microsoft Office break VB6?

    Quote Originally Posted by SamOscarBrown View Post
    Not sure where you are getting your data....as a matter of a fact, have never HEARD of OnlyOffice. EVERYONE I know of who has a MS OS computer uses MS Office...some version of it.
    More that 35 years of experience is a good start point to get data. I'm not saying that OnlyOffice is THE MS replacement, it's one of the multiple choices you have in the market and I suggest you to take a look to that specifical distro (https://www.onlyoffice.com) since is one of the most complete product line with things like Document Server that lets you have your own "Office online" runing with for example your own private cloud like Nextcloud, all self-hosted.

    You're right about most of the (domestic) users that use Windows also use MS-Office but they don't use the features what make MS-Office (paid) different to any other free Office distribution (LibreOffice, OnlyOffice, Collabora and many others) so they are using normally a pirated copy of a product that does a lot of things thay they don't need when they could use any other product for free to do exactly the same, usually with less resources and simple installations. And if it's not pirated, it's a waste of money.

    The enterprise environment runs different, if depends of the company size but specifially Excel is a must because many ERPs use it for reporting or data analysis (SAP B1 for example), a lot of forms use VBA that does not run in any other package, etc.

    I use Office365, nothing against M$, but for most of the users there are better an cheaper options.
    Last edited by zx81sp; Sep 19th, 2024 at 05:14 AM.

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