+ Reply to Thread
Results 1 to 3 of 3

modify target command code to prevent type 13 mismatch

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Illinois
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    86

    modify target command code to prevent type 13 mismatch

    I did a previous post that was solved (click on the link before reading on):

    http://www.excelforum.com/excel-programming/778999-using-the-target-command-to-start-user-form-macro.html"
    However, when I was performing scenarios where this code would 'fail' as a way to test it, I ran into one of the easiest ways it fails and would like to know how the code can be modified to fix this.

    When you change the value in more than one cell via dragging the cursor, I get an

    PHP Code: 
    error code 13 type mismatch 
    ,

    which I think I understand why and that's because my code is expecting a single cell change and multiple cells are being changed. I just don't know how to modify the code so that when a user would do this (which is highly likely for the application I am using the code for), the code would still work without an error.

    Any suggestions?

    For those who were lazy and did not click the link, here is the code:

    Please Login or Register  to view this content.
    Last edited by HP RodNuclear; 06-13-2011 at 03:59 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: modify target command code to prevent type 13 mismatch

    Assuming you want the same actions for each changed cell:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    11-04-2010
    Location
    Illinois
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    86

    Re: modify target command code to prevent type 13 mismatch

    Thnks! Worked like a charm!

+ 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