Results 1 to 8 of 8

Run-time error '13' with drop-down list

Threaded View

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    Montréal
    MS-Off Ver
    Excel 2010
    Posts
    7

    Run-time error '13' with drop-down list

    Hello,

    I succeed to have if A1 not empty then B1 = A1 but if at the same time B1 = not empty, then do not replace B1 by A1 :

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Range("A1") And Range("B1") = "" Then
    Range("B1") = [A1]
    End If
    End Sub

    The problem is that it doesn't work when cells A1 and B1 include drop-down lists with letter and number : D4, B3, F2... (but it works if only numbers : 22, 56...)

    I have : "Run-time error '13' type mismatch"

    Is-it possible to fix it ?

    Thanks a lot for the help
    Attached Files Attached Files

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