+ Reply to Thread
Results 1 to 2 of 2

Trouble Including Variables in R1C1 VBA Code...

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    54

    Trouble Including Variables in R1C1 VBA Code...

    Friends,

    I have a double stored as "Total."

    Please Login or Register  to view this content.
    I need the value of the active cell to actually be the formula and not just the result of the calculation because after this point data will be entered into the SUM range which would alter the total sum. What is the syntax to get this to work?

    Thanks for the help!

  2. #2
    Registered User
    Join Date
    06-26-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Trouble Including Variables in R1C1 VBA Code...

    Try the following:

    ActiveCell.FormulaR1C1 = "=SUM(R[-32]C[15]:R[-2]C[18]) +" & Total

+ 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