1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

simple question to repeat macro

Discussion in 'Software Development' started by koukou, Apr 5, 2008.

Thread Status:
Not open for further replies.
  1. koukou

    koukou Thread Starter

    Joined:
    Apr 5, 2008
    Messages:
    5
    This is the macro I have from simply recording macro, basically i want to have solve for column c here C1 to be zero by changing cell of column E here E1.

    Sub Macro1()
    '
    ' Macro1 Macro
    '

    '
    SolverOk SetCell:="$C$1", MaxMinVal:=3, ValueOf:="0", ByChange:="$E$1"
    SolverSolve
    End Sub

    I would like the macro to do the same for cell C2 changing E2 until the cell C100 when changing E 100

    How can I do this? It is my first time using this...
    Thanks a lot.
     
  2. MRdNk

    MRdNk

    Joined:
    Apr 7, 2007
    Messages:
    439
    I don't use Solver, but a simple For Loop should do the trick:
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - simple question repeat
  1. n00e
    Replies:
    2
    Views:
    411
  2. Pedro14
    Replies:
    0
    Views:
    719
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/700753

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice