+ Reply to Thread
Results 1 to 13 of 13

Looping Excel Formulas

Hybrid View

  1. #1
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Looping Excel Formulas

    this should work for you

    Sub LoopInOut()
        i = 3
        With Sheets("To Plot")
            .Range("A" & i).Value = .Range("E5").Value
            Do Until .Range("A" & i - 1).Value >= .Range("F5").Value And i > 3
                If i > 3 Then .Range("A" & i).Value = Round(.Range("A" & i - 1).Value + .Range("G5").Value, 4)
                Sheets("GUI").Range("C10").Value = .Cells(i, 1).Value
                Application.Calculate
                .Cells(i, 2).Value = Sheets("GUI").Range("C15").Value
                .Cells(i, 3).Value = Sheets("GUI").Range("C14").Value
                i = i + 1
            Loop
        End With
    End Sub
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  2. #2
    Registered User
    Join Date
    04-25-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Looping Excel Formulas

    Perfect, thanks!

    Added a star!

+ 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