VBA - Solver Reference Disappeared -
Oct 30, 2007
When I go to excel ==> ALT + F11 ==> Tools ==> Reference ==> I can't seem to find "solver" anymore. My code was using the solver module, and now my code does not work. I can't find "solver" to check it.
View 2 Replies
ADVERTISEMENT
Apr 10, 2007
When I click Tools Macros Record New Macro I usually get a box which allows me to chose relative reference and is displayed until I click stop.
View 4 Replies
View Related
Nov 23, 2006
my excel sheet runs through different cases (i=1 till i=20). For each case I need to use the solver. Since the whole programm works with references like this cells(10 + i, columnindex).value I tried this with the solver, too. e.g.: SolverOk SetCell:=Cells(20 + i, 46), ValueOf:="0.000001", ByChange:=Cells(20 + i, 47)
But it gives me not a right result as it would give me with a reference like
SolverOk SetCell:="$AT$21", ValueOf:="0.000001", ByChange:="$AU$21"
I tried difference referencing things with different types of brackets, wih range, etc. but I could not figure it out hwo it might works.
View 4 Replies
View Related
Sep 10, 2006
I have a cell, D5, which is the sum of three other cells, A5 B5 and C5. (all currently empty). Cells A1 through C4 are filled with various numbers.
What I've been trying to do is use solver to say: Make D5 equal 200, do it by manipulating only A5 B5 and C5, and make it subject to the constraint that A5 must equal a value selected from A1:A4, and B5 must equal a value from B1:B4, and C5 ...etc. I have deliberately set it up so that there is only one solution.
I was doing fine until trying to create the constraints. How can I make a constraint that says "this cell" must equal "one of the following cells"? And if I can't do that, is there an alternate method of achieving the same result?
View 9 Replies
View Related
Jan 12, 2007
I have to use use the solver to calculate something (a mean-variance framework).
I am using the solver to minimize a cartain cell (variance) by making two cells equal through (expected return) by varying 10 cells( weights of assets), but I have to repeat this for 500+ times (for different expected returns).
Someone told me that I could best use some sort of loop through VBA. But I don't have a clue how that works.
View 13 Replies
View Related
Oct 26, 2008
I'm not sure what I have clicked on, but I have no gridlines when entering data into my spreadsheet.
View 13 Replies
View Related
Oct 23, 2007
I have created some drop-down boxes on a tracking spreadsheet. Last week they were they today they are gone.
I went in and cleared the cells and re-created by dropdowns. I did remember to click, in-cell dropdown, but when I click on the cell it is not there.
Now if I right click on the cell it does give me an option to choose from a drop down. So my options are still there but why are they not appearing in the cell when I click on it.
I am using Excel 2003 with Windows XP
View 9 Replies
View Related
Nov 25, 2008
I am unable to view my tabs in excel - the tabs are there, they just can't be clicked on per say. I have double-check the tools option and verified the correct box is check to view tabs, however, I can't view the tabs. I tried to color a tab and it colored it red, but I can't really view the tab. I can see a red line underneath the directional arrows when I am working on that particular worksheet, but again, I can't view/click on the tab.
View 9 Replies
View Related
May 2, 2007
you know that part at the bottom toolbar which tells you when you select two or more cells what the sum/average/max/min is? Mine's disappeared.
View 2 Replies
View Related
Jan 3, 2013
Was working away on one of my spreadsheets and the black square that surrounds the cell you click on has vanished. i.e. if you click on cell A1, you normally get a black square surrounding the cell A1 to let you know that you are on it. That black square has disappeared.
It seems to affect any spread that I open but if I open a new spreadsheet it is there.
View 4 Replies
View Related
Mar 17, 2014
I have used this file extensively for months. I inadvertently clicked something this morning that made the file "disappear". I can see the file in its folder and open it. But, once opened, I do not see any of the tabs and the name of the file does not appear at the top. I did ALT F11 and can see the tabs in the VBA but I'm missing a step to make the tabs reappear. Since I don't know what I did to make everything disappear,
View 2 Replies
View Related
Jun 17, 2009
Just curious as to what could make a custom menu or custom button disappear from Excel upon opening it. I had created a custom menu with personal.xls macros in it for someone here a while back, and today it was completely missing.. although the Personal.xls folder still existed with the macros.
I am quite sure that they did not manually remove the menu by right-clicking and selecting Customize and dragging back the menu items...
View 5 Replies
View Related
Jul 24, 2012
Column A disappeared and didn't come back. I even arrow over to the left margin, but the furthest it goes is to column B. How can I get my column A back?
View 5 Replies
View Related
May 18, 2005
I have been presented with a rather odd thing with Excel. We have a wookbook with six worksheets in it. When the first of worksheets is displayed, all the other tabs "disappear". The whole bottom tool/navigation bar is no longer displayed. How can I get it back?
View 8 Replies
View Related
Nov 23, 2006
I've created a sheet with a number of drop down lists using the validation menu.
Whilst working on the sheet the lists have disappeared! The validation options are still there and refer to the correct cells that have the correct details in them, but when I click in the cell that should have the list in it I don't get the down arrow to click that shows the list.
I've also tried creating a new list in another cell but that does the same.
Hopefully i've just changed a setting that stops it working and I can unchange it - but I don't know what's caused it.
View 9 Replies
View Related
Sep 26, 2006
After running a macro, the range name toolbar/display box in Excel has disappeared. how to get it to display again?
View 6 Replies
View Related
Oct 10, 2006
I have a chart of type 'Line' that shows a KPI item measured quarterely. It has a single series that references the 'data' worksheet. Since it is measured quarterely, the months in between will have a null value. It has been working to date, but since I have added the data for the latest month, the series line has disappeared. Only the markers remain. The series line is formatted in a vivid blue.
I can't attach the spreadsheet because its 152KB. One thing of note is that when I select the series line, not all of the markers get highlighted as expected
View 2 Replies
View Related
Nov 1, 2010
From time to time, the status bar in excel 2010 is not showing (I don't mean the information is not showing, I mean the bar is not there at all). In previous versions I would go to view>status bar...
how do I get the status bar back in excel 2010?
View 9 Replies
View Related
May 21, 2007
My boss has passed me his laptop that he had been designing a spreadsheet on (Excel 2000). The 'forms' toolbar has completely disappeared. When I right click the area where the toolbars are normally docked it lists every one except forms. clicking customise appears to list a few more menus - but no sign of FORMS. If I click 'new' in customise and type in Forms for the name it tells me 'a toolbar named 'forms' already exists' (so where is it!)
how I can get the toolbar back -
View 9 Replies
View Related
Aug 31, 2007
Edges of worksheet have gone - no tabs, no minimise/maximise.
View 7 Replies
View Related
Jan 21, 2009
I want to use solver program. But when solver "changes cells" i want it to trigger my pivot tables in the workbook. So i added the code to my worksheet:
Private Sub Worksheet_Change(ByVal Target As Range)
ThisWorkbook.RefreshAll
End Sub
So when a change occurs, all my pivot tables will get refreshed and my data will change. Is solver able to trigger this event while solving an optimization problem?
View 9 Replies
View Related
Oct 25, 2011
I have a simple macro that cycles through the sheets in a workbook, and if the sheet's codename matches one of a defined list, some of its data is added to a summary sheet.
The macro works exactly as intended, but a strange thing happened yesterday: some data was missing from the summary sheet because one of the sheets was being ignored. This sheet is named 'MCP' on its tab, and has codename Sheet8.
Here's the strange part: on stepping through the code, cycling the sheets, I noticed that the sheet icon, name and codename had disappeared from the Microsoft Excel Objects folder in the Project Explorer. When the loop got to the sheet in question
Code:
For Each ws In ThisWorkbook.Worksheets
Debug.Print ws.Name
Debug.Print ws.Codename
The above code displayed its name (correctly) as 'MCP', but its codename was blank; the sheet was therefore skipped by the code because the codename had to match against a defined list.
While I was pondering this, and doing some web searches, the sheet then re-appeared in the Project Explorer and everything worked again.
My question is this: is it likely to be due to the workbook being shared? I know that workbook sharing in Excel is often discouraged, but this is a simple workbook only used by a maximum of three users (two of these had the workbook open at the time the issue was reported)
I've changed the code so that the sheet name is inspected in the event that the codename is blank, which should guard against the issue provided sheets are not deleted/renamed.
Windows XP, Excel 2003
View 4 Replies
View Related
Feb 14, 2008
I am trying to drive Solver in Excel 2000 with a Visual Basic (version given as 9969) macro. SolverReset is observed, and SolverAdd puts the constraints in. But the SolverOK statement does nothing, so the SetCell and the ByChange windows stay empty.
SolverSolve is trying to do something, because the spreadsheet cell that should receive the return code from Solver gets an error value #VALUE! (The macro then stops, unable to process this entry.)
Solver is checked off ok in the References list in V.Basic.
The same macro, same spreadsheet, in the same Excel file, works fine on the other computer in my office with what I am told is a more recent version of Excel; i.e. this doesn't look like a coding error.
View 4 Replies
View Related
Jun 2, 2009
I wanted to see if I could use the solver to Solve Sudoku puzzles. I created the attached workbook. First it colors the numbers that are put in manually, which would be the starting puzzle. I have a generic one put in now. Then it finds which cells that are allowed to change. Then it is supposed to solve. It doesn't work. Run the Sheet1.SolvePuzzle Macro to see it not work. Is solver just not up to the task, or am I missing something?
View 2 Replies
View Related
Feb 20, 2010
I recorded a macro using 'Solver'. When I try to run it, I get a message"Complie Error: Sub or Function not defined". Can anyone help me?
Heres the
Sub Macro1()
SolverOk SetCell:="$R$4", MaxMinVal:=3, ValueOf:="4275", ByChange:="$S$4"
SolverSolve
End Sub
I also tried this
Sub SolverMacro()
' Example Solver VBA Macro
SolverReset
SolverOk SetCell:="$R$4", MaxMinVal:=3, ValueOf:="4275", ByChange:="$S$4"
SolverSolve userFinish:=True
End Sub
View 6 Replies
View Related
Dec 21, 2006
can I program a macro to run solver? ...
View 9 Replies
View Related
Feb 4, 2008
I need to solve this using solver. I have an idea, but I'm not sure what to in regards to my objective function, and how to properly set up my constraints. I know I need to use sumproduct, but I'm not sure in what way. I'm using Excel 2007, here is the problem:
The Sweet Smell Fertilizer Company Markets bags of Manure is Combination of compost and Sewage Wastes. Each pound of Compost costs sweet smell $0.05 and has a fertilizer rating of 2 units. Each pound of sewage costs $0.004 and has a fertilizer rating of unit. To provide good quality fertilizer, each bag should contain at least 35 pounds of compost, not more than 40 pounds of sewage, and have total fertilizer rating of at least 100 units. Determine the lowest-cost blend of compose and sewage in each bag.
Here is what I have so far: ....
View 9 Replies
View Related
Nov 17, 2008
I created a trendline and associated equation for some data plotted against Time on the x-axis displayed in MM/DD/YY format. The date for the data ranges from 3/27/06 thru 11/10/08.
The trendline equation is…
F(x)=-6E-13x^5+1E-07x^4-.0087*x^3+329.1*x^2-6E+06*x+5E+10
The data actually crosses the y=0 line around 11/5/07, which is the data root
When I use Goal Seek, I got a zero root solution of 28154.98. When I convert this to the date format, it converts to a date in 1981 which is not correct. I tried a range of initial guesses but they all converge to the same number.
View 9 Replies
View Related
Jan 14, 2009
I am using solver to solve an optimisation problem I have. I need to apply a new solver to every populated row of my sheet. My solver code is as follows:
Sub solverloop()
SolverOk SetCell:="$Z$2", MaxMinVal:=3, ValueOf:="0", ByChange:="$N$2:$O$2"
SolverSolve
End Sub
The code above applies the solver to row 2. My sheet has roughly 500 populated rows. I need to write a macro to loop solver over each row, accept the solution provided by solver, then move to the next row. i would also like to close the loop automatically when the last populated row is reached.
View 9 Replies
View Related
Nov 2, 2006
I'm trying to run a macro which will allow me to run solver and keep the solution.. I have managed to get the macro to work. However, does anyone knows how I can ensure that solver's solution can be automatically saved without prompting the user whether to save the solution?
View 2 Replies
View Related