Consulting

Results 1 to 3 of 3

Thread: Solved: Error With Code (Compile Error) ~Excel 97~

  1. #1
    VBAX Tutor phendrena's Avatar
    Joined
    Oct 2008
    Location
    Huddersfield, UK
    Posts
    285
    Location

    Solved: Error With Code (Compile Error) ~Excel 97~

    Hi,

    I'm been advised that one of my users is getting an error however, all other users don't appear to have any problems.

    [vba]If Trim(Me.cboCanxType.Value) = "" Then
    Me.cboCanxType.SetFocus
    MsgBox "Is this a Mid-Term or Renewal Cancellation?"
    Exit Sub
    End If[/vba]

    The above code is called as part of the update routine.
    When this users clicks the update button they get the following error :-

    "Compile Error:
    Can't find project or library"

    The workbook isn't a shared document and is open as read-only but multiple users.

    Any suggestions why this is occuring?

    Thanks,
    Somewhere in the dark and nasty regions where nobody goes, stands an ancient castle.
    Deep within this dank and uninviting place lives Berk, overworked servant of The Thing Upstairs.
    But thats nothing compared to the horrors that lurk beneath The Trap Door.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    On that users machine, in te VBIDE, goto menu Tools>References.

    You will find an item with MISSING in it's text, uncheck that item.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor phendrena's Avatar
    Joined
    Oct 2008
    Location
    Huddersfield, UK
    Posts
    285
    Location
    Thats great, thanks xld
    Somewhere in the dark and nasty regions where nobody goes, stands an ancient castle.
    Deep within this dank and uninviting place lives Berk, overworked servant of The Thing Upstairs.
    But thats nothing compared to the horrors that lurk beneath The Trap Door.

Posting Permissions

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