×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Goal Seek - Module?

Goal Seek - Module?

Goal Seek - Module?

(OP)
Hi folks

I'm pretty much a newbie to VBA.
I'm trying to 'program' a module that will help me to automate the Goal Seek function.
This is what I like to to:
I got varying numbers of cells that need to be changed with Goal Seek.
In all of the fields that are calculated the same value has to be entered.
All these cells are in the same coloumn and all the value that have the changing value are also one coloumn.
I would like to use a 'mouse select box' highlighting the top left value and to bottom right value. Then  I thought about opening a dialog-box to let the user enter the value that the calculated cells should have.

I could'nt find any help on the microsoft site.
It would be great if you could give me a hand (expecially for the part with the selection with the mouse).

THI
Murat

RE: Goal Seek - Module?

It sounds like u just want to do the same thing as selecting a range of cells with a cursor.  Basically all u have to do is:

Range(A1:Q20).Select

that highlights all the cells from A1 to Q20 in a box.

Btw, an easy way to learn VBA is to select the Macro tab and Record a New macro.  Then do what u want with the Excel sheet, turn off the macro, and go look at the code it autogenerated.  Makes life a lot easier.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close