+ Reply to Thread
Results 1 to 2 of 2

EZ Formula Syntax Question

  1. #1
    Registered User
    Join Date
    06-16-2005
    Posts
    34

    EZ Formula Syntax Question

    I want to something like this:

    ActiveCell.FormulaR1C1 = "=R1C&(offset+2)*RC[-4+x-2]"

    (offset is some constant, and x is the var in for loop)

    The VBA recorder gave me this:

    ActiveCell.FormulaR1C1 = "=R1C7*RC[-4]"

    What is the correct synatx to do this? Thanks

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    ActiveCell.FormulaR1C1 = "=R1C" & offset+2 & "*RC" & -4+x-2

    but you should be able to simply use x - 6 for the last argument instead of -4+x-2

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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