Goal Seek with command button

zulychg

Board Regular
Joined
Nov 19, 2005
Messages
60
does someone can help me or let me know how to do set goal seek through a command button? Any help will be appreciate.. thanks alot : :biggrin:
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Can you please post a simple sample & description of what is required? Thanks, Fazza
 
Upvote 0
goal seek

I want to a break even analysis

Since I need to do that everyday using a fixed template. I have the sensitivity 80% and the NPV I want o know what percentage of sensibility will give me an cero NPV.... I don't want to use the goal seek function every time. Instead create a command button that will allow me to do so... , I don't really have an example yet since I'm still working in the template...

thanks
 
Upvote 0
Well, it should be pretty simple. It is usually just one line of code.

The macro recorder will show you how it is.

Suggest you use defined names for the particular cells that you need to reference and then they will stay correct as row/column changes are made to the worksheet. (To avoid having something like "B1" in your VBA and then adding a new column. The VBA will still refer to "B1" although you will want it to be "C1" in this example; using a named range overcomes this potential problem.)

regards, Fazza
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,915
Members
448,532
Latest member
9Kimo3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top