+ Reply to Thread
Results 1 to 6 of 6

Runtime error 13 type mismatch when inserting columns

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    Adelaide
    MS-Off Ver
    Excel 2003
    Posts
    3

    Runtime error 13 type mismatch when inserting columns

    Hi
    Im using a macro for two-way linking between two tabs. The linking works fine, but when I insert rows or columns in either of the linked tabs, or other tabs in the worksheet, I get a "Runtime error 13 type mismatch" error.

    Any ideas where Im going wrong and can stop the error? Code below and sheet attached.
    Note, the two linked cells are named Cell1 for the Sheet1 tab, Cell2 for Sheet2 tab.

    Please Login or Register  to view this content.

    Thanks in advance...Chris
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Runtime error 13 type mismatch when inserting columns

    your code works fine in my case.. no error.. no halt..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    09-09-2013
    Location
    Adelaide
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Runtime error 13 type mismatch when inserting columns

    Hi Debraj , thats reassuringly unhelpful ! : )
    did you use the sheet I attached or just the code? Ive closed all excel and retried but still the error pops up.

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Runtime error 13 type mismatch when inserting columns

    OOPS sorry.. I missed the actual query..

    Runtime error 13 type mismatch when inserting columns
    at the starting of you code.. add this line....

    If Target.Count > 1 Then Exit Sub

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-09-2013
    Location
    Adelaide
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Runtime error 13 type mismatch when inserting columns

    brilliant, thats works perfectly !

    Thank you so much.

    Chris

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Runtime error 13 type mismatch when inserting columns

    Happy to help.. and thanks for the feedback..

    Please
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Runtime Error Type Mismatch
    By hungryhobo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2013, 08:50 PM
  2. RunTime Error 13 and Type Mismatch...
    By TheNewGuy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-24-2010, 09:24 AM
  3. runtime error '13' type mismatch
    By longhorn23 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-18-2010, 04:53 PM
  4. [SOLVED] Runtime Error Type 13 Mismatch
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2006, 12:35 PM
  5. Runtime Error 13 - type mismatch
    By hindlehey in forum Excel General
    Replies: 1
    Last Post: 11-07-2005, 10:55 AM

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