Results 1 to 9 of 9

Add formula to multible cells !

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Add formula to multible cells !

    Hi this one feels it should be easy but im going cracy here.

    I have a overview page and when i press a button i want formulas to be added to specific cell.
    Im using this code to add the formula to the cell:
    [A1].FormulaLocal = "=SUMMA(Sheet2!A1)"
    When i press the button i want the code to add it to Range A1:A1000
    and to save me some time i wonder if its any way to add it directly to the range and not like this:
    [A1].FormulaLocal = "=SUMMA(Sheet2!A1)"
    [A2].FormulaLocal = "=SUMMA(Sheet2!A2)"
    [A3].FormulaLocal = "=SUMMA(Sheet2!A3)"
    Etc.
    I know how to add the formula to a range of cells but in this case the range in the formula has to change
    as above.

    Petter
    Last edited by Petter120; 03-05-2012 at 06:44 PM.

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