+ Reply to Thread
Results 1 to 2 of 2

Simple Iterative Program

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Lahore
    MS-Off Ver
    Excel 2007
    Posts
    26

    Simple Iterative Program

    Hi All!

    Could sm.one pl. suggest how to program the following simple formula, for different values of Area,using excel macros

    Area=3.14*R^2

    wheras R=radius for values of R ranging from 1 to 10

    Thx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Simple Iterative Program

    Hi,

    Sub Areas
    Dim x as long, dArea as Double

    For x = 1 to 10
    dArea = 3.14 * x ^ 2
    MsgBox dArea
    Next x

    End Sub
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. coin toss programme for MS Excel
    By mayf92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2013, 09:27 AM
  2. Relatively simple summation program
    By excel_newbert in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2012, 10:51 PM
  3. Program:Simple Macro
    By jfish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2010, 01:00 AM
  4. Simple excel program
    By LLMM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2007, 03:43 AM
  5. [SOLVED] Help with simple looping program
    By Stephen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2006, 02:00 PM

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