+ Reply to Thread
Results 1 to 3 of 3

type13 mismatch error message... any idea why?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-11-2005
    Posts
    87

    type13 mismatch error message... any idea why?

    Got this msg when I open the sheet... Gets into debugging of the following code:

    Private Sub Worksheet_Calculate()

    If Range("O16") <> "" Then
    If Range("Q18") = "yes" Then
    Range("O20") = Range("O16")
    Range("O21") = Range("L16")
    Range("P20") = Now
    End If
    End If
    If Range("Q26") = "yes" Then
    Range("O20") = ""
    Range("O21") = ""
    Range("P20") = ""
    End If
    End Sub

    where is the mistake????? and it only monday...

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Which line is causing the error?

    Try this instead.
    Private Sub Worksheet_Calculate()
    
    If Range("O16").Value <> "" Then
         If Range("Q18").Value = "yes" Then
              Range("O20") = Range("O16")
              Range("O21") = Range("L16")
              Range("P20") = Now
         End If
    End If
    
    If Range("Q26").Value = "yes" Then
         Range("O20") = ""
         Range("O21") = ""
         Range("P20") = ""
    End If
    
    End Sub

  3. #3
    Registered User
    Join Date
    03-11-2005
    Posts
    87

    cheers Norie

    thanks a lot Norie

+ 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