<https://forum.ozgrid.com/forum/index.php?thread/133178-excel-vba-multiple-automatic-goal-seek/>
<http://schema.org/articleBody>
"Hello,\n\nI would very grateful if you can please help with the problem I have run into. We sell on Amazon and I am trying to automate our costing sheet so based on margins our selling price can be decided. However, I am struggling as the Amazon fee is a % of the price and hence has a further impact on your margin.\n\nI have uploaded a test excel sheet, with two sheets, here is the link: https://www.dropbox.com/s/88gfbjzigervvh3/Test.xlsm I have also attached the sheet below if that would be easier.\n\n\nI have attempted to use a VBA code which is shown below:\n\n\n(Code, 13 lines)\n\n\nNow, I have a few problems. The code sort of works, however it does not tackle these issues:\n\n1. It only works for one row at a time, we have thousands of products on our other sheet and I want a code which will cover the entire spreadsheet.\n\n2. I have to paste this code in every sheet, is there a way to put it on the work book\n\n3. We want our min price to be written on the min price column, and same with the max price on the max price column, based on the % specified in other column. How can we run this        simultaneously?\n\n4. The cost EX VAT is the addition of B2:E2, however, I have just used F2 which is Cost of EX VAT in the VBA shown, therefore if cost changes, automatically price should change. But    this does not work, on the other hand if I specify B2, C2, D2… in the code individually then it works. Why is this?\n\nI do not have amazing knowledge on VBA as I am learning, any help will be greatly appreciated. If you feel like there is an easier way to complete this task, please do say.\n\nThanks for taking time to help or even read this.\n\nKind Regards,\nChampaben"
<https://forum.ozgrid.com/forum/index.php?thread/133178-excel-vba-multiple-automatic-goal-seek/&postID=954065>