+ Reply to Thread
Results 1 to 5 of 5

'If Left' no longer works

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    'If Left' no longer works

    I used the following in Excel 2003 but it give a 'Compile Error: Can't find project or library' in Excel 2007
    Any help would be appreciated

    If Left(iVal, 2) <> "00" Then
    iVal = "00" & iVal
    ElseIf Left(iVal, 1) <> "0" Then
    iVal = "0" & iVal
    End If

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: 'If Left' no longer works

    In the VBE, Tools > References, untick any marked MISSING.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: 'If Left' no longer works

    References is Greyed Out

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: 'If Left' no longer works

    Press the Reset button on the Debug toolbar, or Run > Reset

  5. #5
    Registered User
    Join Date
    10-04-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: 'If Left' no longer works

    Thanks

    Problem solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1