Results 1 to 6 of 6

Thread: Mid( and Format( not Recognized (resolved)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2001
    Location
    Melbourne, Florida
    Posts
    65

    Mid( and Format( not Recognized (resolved)

    Hi All,

    I have a spreadsheet that has quite a few Macros in it. In testing, on my computer, (VB6), installed, the macros run fine. But when others run options, they get a compile error of "Can't find project or Library". and (MID) is highlighted. On other options, they get the same error with (Format) highlighted. The library for the mid is VBE6.DLL and that file, with the same date time stamp in on both computers. Any ideas?
    \
    Thanks in Advance.
    Last edited by Cole Patzman; Mar 31st, 2005 at 07:42 AM. Reason: resolved

  2. #2
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Re: Mid( and Format( not Recognized

    Have you checked that they both have the same reference files in use?

    from your VB editor in excel

    click Tools>references

    do a comparison between the pc that it works on, and the one it doesnt

    HTH
    if you fail to plan, you plan to fail

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2001
    Location
    Melbourne, Florida
    Posts
    65

    Re: Mid( and Format( not Recognized

    Everything is the same. Same file on a Lan sharepoint.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2001
    Location
    Melbourne, Florida
    Posts
    65

    Re: Mid( and Format( not Recognized

    Everything is the same. Same file on a Lan sharepoint.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Mid( and Format( not Recognized

    In the VBA Editor check the references. Also are the other users running different versions of Excel or OS?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Dec 2001
    Location
    Melbourne, Florida
    Posts
    65

    Re: Mid( and Format( not Recognized (Resolved)

    I checked the references, and the other computers. Everyone is running on Windows 2000. The checked references are:

    Visual Basic for Applications VBE6.DLL
    MS Excel 9.0 Library EXCEL9.OLB
    OLE Automation STDOLE2.TLB
    MS Office 9.0 Object Library MS09.DLL
    MS Forms 2.0 Object Library FM20.DLL
    MS Windows Common Control 36.0(SP5) COMCT332.OCX
    MS COMM Control 6.0 COM32.OCX
    MS Common Dialog Control 6.0 (SP3) COMDLG32.OCX

    The above files are in the same folder on both my computer and theirs. Only mine runs, and theirs don't!
    (Afterthought) I deleted some of the references and the program works as advertised, apparently one of the references nullified the reference I needed. Of the above list, I unchecked the 3rd, 4th, 6th, and 7th.
    Last edited by Cole Patzman; Mar 31st, 2005 at 06:33 AM. Reason: resolved

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