+ Reply to Thread
Results 1 to 4 of 4

Using IF Statement With .FormulaR1C1

  1. #1
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Exclamation Using IF Statement With .FormulaR1C1

    I am trying to create a formula in VBA that place "1-7 Days", "8-15 Days", or ">15 Days" in column E, based on the number in the corresponding row of column D. The data starts with row 3.

    I need the formula to fill down to the bottom of the data set. Below is what I have so far, but I'm not sure what I am doing wrong. I keep getting a Run-time error '438' "Object doesnt support this property or method"

    Please assist in identifying my problem, and also how I could get this to carry down to the bottom of the data set without using a loop.

    Thank you.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using IF Statement With .FormulaR1C1

    That code works, is there any other code?

    If you wanted the formula to carry down:
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Using IF Statement With .FormulaR1C1

    Norie,

    For some reason when I copied your code, it worked.... not sure why it made a difference, but thank you again for your help.

  4. #4
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Using IF Statement With .FormulaR1C1

    Please clear this last comment. The problem was situational to my specific code.
    Last edited by Gard5096; 01-10-2013 at 05:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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