Results 1 to 3 of 3

Trouble with Formula (in loop)

Threaded View

  1. #1
    Registered User
    Join Date
    10-23-2006
    Posts
    79

    Trouble with Formula (in loop)

    Hi

    I am attempting to use a formula within a loop and I am not sure how to write it...or reference it...

    I have... Cells(i, h).FormulaR1C1 = "=SUM(RC[-(AddCols(g))]:RC[-1])"

    (BTW: g = 0 to 41 and Dim AddCols(41) As Integer - maybe this is incorrect????) It appears to not like the (AddCols(g)) but maybe it does not like the cells part...?

    I am trying to sum up various columns dependant on the variable 'AddCols'.

    Can anyone help..?

    dugong
    Last edited by dugong; 03-11-2008 at 05:18 AM.

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