
Originally Posted by
thedon_1
I suppose what i'm really asking is how can i get solver to go through a list of target values and give me results without me having to manually change the figures after each calculation.
This was literally the first code I ever wrote and as it is a work in progress it hasn't been cleaned up. Being very new to any kind of programming it is also messy as heck but it will hopefully give you some ideas. You will need to set up your worksheet to place the different arrays where they are located in the code but it does a pretty good job of working through all of the constraints. It loops through all of the efficient portfolios with mean returns from min to max in .1% increments.
Bookmarks