iserror in vba.

  1. D

    IF ISERROR and FIND based on multiple criterias

    Hello, please help me, im stuck. So here is my table: Table 1: EE Name(A1), prospect name (B1)(name is very long, i.e: AEM-xxxxxx, AEM-yyyyy, AEM-Advanced,etc..., AEP-xxxxx, AEP-zzzz,.... (AEM, AEP...are client names) Table 2: EE Name (C1), prospect abbreviation (D1) I need to abbreviate...
  2. J

    use ISError when using a defined name - correct syntax?

    to all I rather than hardcoding a column in my vba script I am using a defined name to get the column using iRefCol=Range("RF1RefCol").Column) where RF1RefCol is the defined name this works fine I now want sto capture the possibility of the define nam enot existing in the xls (deleted by...
  3. M

    Run-time error '1004'

    I can't figure out how to get rid of the Run-time error '1004': My VBA code is supposed to write a simple ISERROR-function to the worksheet. When I type it manually and record a macro the code reads:ActiveCell.FormulaR1C1 = _...
  4. A

    If(ISERROR

    Hi - I can't seem to get the ISERROR to work in VBA. Numerator = X Denominator = Y Fraction = X/Y X and Y varies in my macro (loops through loads of data). Sometimes Y will be zero and my macro fails. I want to apply the IF(ISERROR function: Fraction = IF(ISERROR((X/Y),0,(X/Y)). But I only...
  5. J

    ISERROR Runtime error "1004" issue

    I have been trying to get this code to work for 2 hours now. I have to columns of dates/times that I need to find the difference between and put that variable in another column that is formated as time. If there is a blank cell in either of those columns it gives me a #Value error. I'm trying to...
  6. G

    iserror in VBA.

    Hi, i have been trying to handle the error in vba for last two days and have tried all the possible option i know but unfortunately not got rid of this error till now. below is the code- if not iserror(Application.WorksheetFunction.Rank(Cells(a, 24), Range("x:x"))) then Activecell.value =...

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top