+ Reply to Thread
Results 1 to 2 of 2

creating a function that maps to a large spreadsheet

  1. #1
    Registered User
    Join Date
    05-25-2008
    Posts
    1

    creating a function that maps to a large spreadsheet

    I have a complicated Excel spreadsheet that essentially looks at 1 cell and calculates an output (it uses iteration to converge to the output value).

    The problem is I have a lot of data I would like to run through the spreadsheet, but I don't want to do it one by one. I would somehow like to "call" the spreadsheet, insert the input, and retrieve the output, and do this multiple times. Does anybody have any tips or example VB code that can do this?

    Thanks,

    K Christman
    Last edited by KChristman; 05-25-2008 at 07:13 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try this example and see if it helps.

    In a blank sheet, enter the formula =A1*2 in cell B1.

    Then run the code

    Please Login or Register  to view this content.
    This will put the value of i into A1, and extract the output from B1.

    Another option is to look at data tables. You can input a range of numbers, and have the output from your calculations show in the next column.

    HTH

    rylo

+ 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