type mismatch

  1. I

    Type Mismatch Error!

    I can't seem to find where the type mismatch occurs. :( Any ideas? Sub CalculateAndPlot_Click() Dim AxialForce As Double Dim CTWeight As Double Dim FormationFrictionConstant As Double Dim CasingDepth As Double Dim CasingFrictionConstant As Double Dim WellDepth As Double Dim HoldAngle As...
  2. P

    Converting SumIf to VBA - Type Mismatch error

    I'm trying to convert this formula to VBA code: =SUMIF(I:I,N3,G:G) Cells(i, col6).Value = Application.SumIf(Range(col1 & _ Chr(58) & col1), Cells(i, col2), (Range("G:G"))) Where col1 = "I" col2 = "N" i = 3 I get a type mismatch error in VBA; however, the formula runs fine in Excel. How do I...
  3. B

    Runtime error 13 - Type Mismatch

    I have an excel spreadsheet that has a list of names in Column A (rows 2 through 6). It has a list of categories in Row A (B through X). In my code I identified the person names with NameItem and the categories with CatItem and defined both as Variant in Module 1. I am struggling with why my...
  4. R

    run-time error '13' type mismatch

    Hello, I'm new at VBA and I could use some help debugging my code. I keep getting the error, "run-time error '13' type mismatch." Thanks. ' Converts 0.00 values to "-" characters '--------------------------------------- For Each c In...
  5. R

    type mismatch: runtime error 13 vba

    Hi, i am new to VBA I am simply trying to add the rows in 2 colums into a rd column. i wrote columns(3).value= columns(1).value+ columns(2).value but it gives runtime error 13. Any help on this.....please reply soon....gotta make this work till tomorrow!! thanx in advance.
  6. J

    VBA math and firstdayofweek

    Hi there, I've got two questions today: First: How can I automatically return the first day of the week in vba. I want to do this completely without any user input, i.e. how can I properly code this: Format(FirstDayOfWeek, "mmdd"). Second: How do you multiply and divide cells using vba? I...
  7. B

    strange run time error 13 - type mismatch - textbox.value issue

    Userform has textboxes for input / output, as well as combobox1 & 2 to load data into form and sheet in background. I have been trying to program it so that the user can simply change the text box prices and costs, and it updates on the fly. It works perfectly with only with one input textbox...
  8. E

    Find Method 256 Character Size Issue

    I hope someone can help with this as I've searched a while and can't find anything on this. I have the following function I found somewhere else to use the .Find method to locate an item in a range. My usage is to use this to retrieve the row number of the match (if found) rather than a much...
  9. Gingertrees

    calculate a range based on a variable?

    I have a command button that hides several ranges of rows when clicked, and I want to make this simpler to edit by defining the starts and ends of ranges using variables. So my code now is: Rows.("59:100").EntireRow.Hide = true 'range 1 Rows.("125:145").EntireRow.Hide = true 'range 2...
  10. A

    Type mismatch Run-time Error 13

    Hi people, I have big, big problem and i need to fix it very fast. Every time i run user form and select value in combobox 4 i get run time error 13 type mismatch at part of code witch i will mark in code i post. Private Sub ComboBox4_Change() TextBox12.Text =...
  11. C

    Error 2042 - Returning row information

    Morning, Hope someone can help me out a bit here, I have workbook with 2 worksheets in it, using vlookup the first spreadsheet pulls information from sheet2 relating to elements in the first worksheet Currently I have a userform that finds any instance of the user inputted search and tells...
  12. R

    Type mismatch

    I am having problems with the following "NETWORKDAYS" code. I get a Type mismatch during run-time. Equally important, the second date in the NETWORKDAYS statement, "G2", needs to be variable such as i for the row and an offset into an array as the column (I have the array built and use it...
  13. KG Old Wolf

    Error 13 - Type Mismatch

    The code below works but I want to substitute the variables in red for the literals in blue. I can see the correct numeric values being obtained by the red variables. Yet, as soon as I substitute the red variables, I get an error 13 - type mismatch. The values in red are always numerics and are...
  14. A

    WorksheetFunction.Vlookup - Type Mismatch error

    I am getting a type mismatch error trying to run a vlookup in VBA. The lookup range is in a different workbook. Relevant piece of code is below (wbkHarvester is declared and Set in another global module). Any suggestions? Thanks - Alicia Dim intExchange As Integer Dim strCampNum as...
  15. T

    Type Mismmatch question

    I get a type mismatch error when I run the following macro. Can you please tell me what the problem is? The error occurs on the line : "ActiveSheet.Range(LMult3).Value = tmp1 * NoMatchRate * NoMatchWeight + tmp1 * MatchRate * MatchWeight" Sub Checker() ' ' Checker Macro ' Dim cBox As...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top