GoalSeek & Macros

Anothersignalman

New Member
Joined
Aug 2, 2011
Messages
1
Hi all,

Putting together part of an assignment for first-year Uni, and one of the functions I want to add in (it's optional but the easiest of the lot) requires a macro that automatically causes a GoalSeek to work.

There are two problems that I have, which I'm not sure how to solve.

1. How do I tell the macro/button in Tab1 to do something in Tab2? I'm assuming this is the problem because I get a "Reference is not valid" error if it's in Tab1, but it works fine in Tab2 where the calculation takes place.

2. As it stands, the goalseek is changing cell C123 to $0.00. But I want it to look for the text "END" in column B, then GoalSeek the adjacent value in column C. It sounds like a VLookup but I'm not really sure, so how do I program that?

Thanks in advance,
Dave
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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