Goal Seek VBA Help

howiwonder

New Member
Joined
Jul 29, 2014
Messages
4
Hello --

I am trying to set up a goal seek macro with the following specs:

individual goal seeks needed, for each column

I need to set cell c13 to 0 by changing cell c14, and then set d13 to 0 by changing d14, etc. through to column GE.

Can you help?

Thank you!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hello --

I am trying to set up a goal seek macro with the following specs:

individual goal seeks needed, for each column

I need to set cell c13 to 0 by changing cell c14, and then set d13 to 0 by changing d14, etc. through to column GE.

Can you help?

Thank you!
Goal seek is part of the Excel Add-ins that Ship with every version after Excel 2007. writing a goal seek would be re-inventing the wheel.
 
Upvote 0
Goal seek is part of the Excel Add-ins that Ship with every version after Excel 2007. writing a goal seek would be re-inventing the wheel.

Yes, but what you're proposing requires 185 iterations of goal seek. I am trying to find a vba solution that runs the goal seek in sequence. Please advise, thank you!
 
Upvote 0
Maybe ...

Code:
Sub hw()
  Dim cell As Range
  
  For Each cell In Range("C13:GE13").Cells
    cell.GoalSeek Goal:=0, ChangingCell:=cell.Offset(1)
  Next cell
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,960
Latest member
AKSMITH

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