Data - What-if Analysis - Goal Seek Function

hassanali

New Member
Joined
Oct 4, 2015
Messages
2
Dears,

Good Day.

I am new user in VBA. And, I have run Goal Seek function. I have some rows that I want to run VBA Macro. But, when I select active cells to record macro is working fine. The issued with the macro is only working for first row. Not work for active cells "rows"

Sub Goals_seek()
'
' Goals_seek Macro
' Adjusment trade price
'
' Keyboard Shortcut: Ctrl+Shift+G
'
ActiveCell.GoalSeek Goal:=0, ChangingCell:=ActiveCell.Offset(0, -4).Range( _
"A1")
End Sub




Appreciate to support me.

Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the board.

Why not just use a formula?
 
Upvote 0
Row\Col
A​
B​
C​
D​
E​
F​
1​
3.00%​
2​
Share
Price
Mkt Value
Comm
Exch Amt
E - C
3​
123​
$ 25.29​
$ 3,111.10​
$ 93.33​
$ 3,111.10​
$ -​
4​
32​
$ 48.76​
$ 1,560.45​
$ 46.81​
$ 1,560.45​
$ -​
5​
6​
A3: InputB3: =E3/A3C3: =A3*B3D3: =D$1 * C3E3: InputF3: =E3-C3
 
Upvote 0
Hi Shg,

I am receiving excel file from market exchange and the only provide me no of share and exchange amount. And, to upload the excel file in system in need to fill the missing data by formula. as shown in pic.

thanks you in advance.
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,134
Members
449,206
Latest member
burgsrus

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