+ Reply to Thread
Results 1 to 4 of 4

"Run time Error '13, Type mismatch issue - please help

  1. #1
    Registered User
    Join Date
    03-08-2015
    Location
    england
    MS-Off Ver
    10
    Posts
    12

    "Run time Error '13, Type mismatch issue - please help

    Hi
    I did created the macro which is calculating the average and the code is working correctly
    PHP Code: 
    Private Sub textbox5_change()                                                  'Wyliczy sredia z Seed 1st & 2nd sample

    Dim dblTextBox2 As Double
    Dim dblTextBox3 As Double
    Dim dblTextBox4 As Double
    Dim dblTextBox5 As Double
    If TextBox2.Value <> "" Then dblTextBox2 = CDbl(TextBox2.Value)
    If TextBox3.Value <> "" Then dblTextBox3 = CDbl(TextBox3.Value)
    If TextBox4.Value <> "" Then dblTextBox4 = CDbl(TextBox4.Value)
    If TextBox5.Value <> "" Then dblTextBox5 = CDbl(TextBox5.Value)
    TextBox10.Value = ((((100 / TextBox3.Value) * TextBox2.Value) + ((100 / TextBox5.Value) * TextBox4.Value)) / 2)
    If dblTextBox5 > 0 Then TextBox10.Value = Format((((100 / TextBox3.Value) * TextBox2.Value) + ((100 / TextBox5.Value) * TextBox4.Value)) / 2, "0")


    End Sub 
    but when i am using another macro to transfer data from textboxes to one of my tabs it is showing me the fault "Run time Error '13, Type mismatch
    i don't have idea why this is happening especially that all the data is property transferred
    When i am opening VBA window the code below is highlighted on read

    PHP Code: 
    TextBox10.Value = ((((100 TextBox3.Value) * TextBox2.Value) + ((100 TextBox5.Value) * TextBox4.Value)) / 2
    Last edited by lukasz_W; 09-04-2015 at 06:34 AM.

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: "Run time Error '13, Type mismatch issue - please help

    U getting error.. but does the data get transffered?

    IF so
    Try using
    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Registered User
    Join Date
    03-08-2015
    Location
    england
    MS-Off Ver
    10
    Posts
    12

    Re: "Run time Error '13, Type mismatch issue - please help

    Hi
    Yes it is transferring and this statement did help
    Thank you for support

  4. #4
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: "Run time Error '13, Type mismatch issue - please help

    Oh great..

+ 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. Replies: 12
    Last Post: 11-24-2014, 10:22 AM
  2. Excel 2010 (Run-time error '13' type mismatch) "Debug" and "Continue" Grayed out.
    By Jeronimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 06:42 PM
  3. [SOLVED] "Run-time error '13': Type mismatch" when deleteing multiple cells from targeted columns
    By mweickdival in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 01:09 PM
  4. [SOLVED] How to fix "Run-time error 13, type mismatch" when vlookup return value of #N/A?
    By ohlalayeah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2012, 02:01 AM
  5. [SOLVED] VBA Excel 2007 : Autofit Merge Cells Error "Run-time error '13': Type Mismatch"
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 04:10 PM
  6. Error Handling to mitigate "Run Time Erorr 13 Type Mismatch"
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2005, 09:05 AM
  7. [SOLVED] Run-time Error "13" - File Type Mismatch
    By brentm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2005, 02:06 PM

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