Record macro when executing costum add in - excel

I just downloaded a free add in to solve Non Linear Equations with Newton-Raphson's method for Excel it is working great but when i try to record a macro using this add in I don't find it in the code corresponding to the actions i performed on the add in forms. I already tried many times but this add in is checked in references but still nothing recording any solutions ?

I think you should just use solver and insteed of setting the cell value to 0 just set it to 0.0000001 ;) it should work

Related

Finding the cause of Excel file corruption

I have a feature that downloads things to an xls file using Apache POI. Mostly it works. But on one particular database, the resulting files are corrupted and won't open in Excel. I get the message "We found a problem with some content in 'DownloadFoo.xls'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes." . Clicking yes results in all the formatting, data validation, etc being stripped out. On the other hand, if I open the file in Open Office Calc and save it, it's fine and can be opened in Excel from then on. (The people who want to use these files aren't allowed to download Open Office Calc, so this is not considered an acceptable workaround.)
I have tried narrowing it down to see which data is causing the problem, but it seems to occur whenever 10 or more items are downloaded, regardless of which items they are. (On other databases, it's fine to download 100+). Excluding some of the columns helps, but they are perfectly innocuous looking columns (and virtually identical to other columns which are fine) so this still hasn't got me to the bottom of it.
Are there any techniques I could use to find out what Excel has a problem with in the corrupted spreadsheets?
I can't make major changes like getting it to download to xlsx instead as this feature is going to be scrapped and replaced with something completely different in the near future, so I'd like to just focus on the problem at hand.
It turns out that the solution to the problem was to reset the data validation lists more often. Quite a lot of the cells in my spreadsheet have data validation. When the data validation lists are longer, they are stored on a hidden sheet. If several cells need the same validation, I try to get them referencing the same list in order to not write out too much stuff on the hidden sheet. However Excel apparently dislikes it when too many cells reference the same list- it's not against the rules as far as I can tell, but it doesn't like it anyway. When I changed it to rewrite the validation lists for every 5 items, it started working.
The reason this database was different was that the items had an unusually high number of subitems, so they occupied a lot of rows even though it didn't seem like many things were being downloaded. Some of the problem columns just had true or false validation rather than using the lists on the hidden sheet, so I don't know what that was about, but resetting the validation lists helped anyway.
This doesn't really answer my question as I never managed to get any information from Excel about what the problem was, or use a particular technique, it was just a series of coincidental findings. I'm putting it here anyway in case anyone else has a similar problem. Also the thing that started me on the right track was finding an old comment when double checking that it doesn't do anything different for over 10 items (it doesn't) in response to Andrew Morton's comment, so thanks Andrew!

Excel iferror for chart series or another workaround

I have a very interesting issue. I'm trying to create a dynamic chart. This works well for the most part, however, when I change one of my parameters it makes the chart references invalid, which causes an incredibly annoying pop-up saying there are invalid references... I've tried to use an iferror([series formula],[generic formula]) but this is an invalid error.
So, I will accept one of two solutions... Either a way to use iferror() with my series, or a way to turn off the obnoxious pop-up message.
Some more pertinent information :
I'm using dynamic named ranges
The dynamic ranges point to validation boxes (another thing I've considered is figuring out a way to auto-update the validation boxes since the issue is caused when validation box A is changed but B and C aren't changed yet.) The image attached will hopefully help explain....
Thank you for any assistance you can give!!
The problem is when the start date is later than the end date, right? Somewhere I usually use MIN(StartDate,EndDate) as my real start date and MAX(StartDate,EndDate) as my real end date.

CountIf acting strange on a lot of data[Excel 2007]

I have a two column set of data, I'm trying to find how many times each value repeats using count.if(). Problem is that my two columns are 783361 rows long, and after like 10 minutes of the loading circle thingy goes away, only the first entries look accurate, however, most of the other data shows the same count, which seemed wrong at first. I then clicked on the formula to see if it didn't drag correctly, turned out it was, and I hit enter. Instantly the count updated to a value that seemed more accurate, I tried this again on random rows, and the same happened. I could go one by one, but again, it's 783361 entries.
Any idea on how to make the evaluations... correct?
If you need any further information I'll happily provide it :^)
If disabled, try enabling Automatic calculations:
Excel 2007:
Office button > Excel options > Formulas > Workbook Calculation > Automatic.
If that does not work, you can try to disable it, close Excel, then open and re-enable it, though that is not likely to work either (worth a shot).
Beyond that, you may want to try reinstalling based on the post I found on Super User by the title of Excel 2007 won't auto-calculate
Please report back and let me know if either of these help.
Apparently almost a million entries to process was too much for my uni's computers, the calculation time would time out somehow and just defalut every cell it hadn't evaluated to the last calculated value.
I figure this is the case because when I got home I tried again and it froze processing for solid 30 minutes and every entry I checked seemed correct. My home computer is an i7 8RAM vs i3 4RAM, so I guess that helps too.
I guess now the question turns into "How to increase calculation time limits in excel?"
Anyways, thanks for the interest everyone, cheers!

how to display data that is related to a specific cell in excel 2010?

I have created 2 columns, the first has a category of a system using data validation, and the second has the description and failures of that system.
The purpose of that is to open a malfunction on some parts.
In a different sheet I wish to do the same only this time I want to choose the system and the description will automatically appear in the next column showing me all the malfunctions I have written on this system.
I am not very good at all the functions of excel. but I still searched for one that might help me. I have tried using the DGET function but it got me nowhere.
Perhaps try the solution here - it's a bit tricky to explain without copy-pasting the whole thing:
https://superuser.com/questions/536234/excel-how-to-vlookup-to-return-multiple-values
Also take a look at vlookup() if you're working across spreadsheets.
As expected, all of the responses you've seen ehere - and probably elsewhere - are ponyers to VLookup, or a refusal to answer your question.
I'm guessing that you're using DGET() because you need to retrieve data from one named column, using a match for a search term in another named column; and you're that because you can't rely on column ordinals or addresses - you have to do it by name.
VLookup won't do that for you: not without extremely complex and fragile array formulae.
The bad news is: Microsoft NEVER published a working example of a DGET() formula or any corresponding VBA Worksheet Function code.
There's page after page of descriptive text and general explanation in the helpfiles and on MSDN: but no working example. Nobody in Redmond ever sat down and made the DGET() function work with a reproducible set of function parameters and published a screen-shot the working formula.
I'll let you guess why that is.
Maybe there's an example somewhere that is, in effect, a VLookup implemented for known column ordinals using DGET(). If there is, I never found it and you won't either: and it would, of course, be useless for any application where you're working with field names instead of known ordinals.
What you need to do is capture the tabulated data range, with field names in the top row, and pass it to a SQL query using ADODB or MS-Query. That bad new for that is that all the MS-JET Excel drivers have a fatal memory leak.
After that fails, you're left exporting the data somewhere that a proper database app can run the SQL: and that's actually the right thing to do, because your attempt at using DGET() is a relational data query.
If you're left with the need to do this entirely in Excel, you have reached a level of desperation normally associated with the last survivor of an airplane crash who, having devoured the charred remains of his unlucky fellow passengers, is finally forced to contemplate the awful exigency of opening and eating the inflight catering meals.
The grisly details for the equivalent in Excel are a Horrible Hack published here:
http://excellerando.blogspot.com/2014/09/from-time-to-time-it-necessary-to.html

Limiting autoshape movement in Excel

This is my first question here, so try not to be harsh.
I am trying to create an excel sheet, which does the following:
reads information from the database through the custom defined class
using the read specifications, it creates autoshapes and puts them in first sheet
Is there any way to get information when someone changes the autoshapes (ie, resizes or moves them)? I thought about using built in events - but non of them works for me. Can I limit autoshape movement in any other way?
This sheet needs to be done in Microsoft Office 2003.
I would be grateful for any help.
Best regards,
Mike.
[edit]
I think than I have found a partial solution - I will test if it works, and if yes - I will post it here.
No there are no events that apply to shapes. The best you could do is use the existing events - like SheetChange, SheetSelectionChange, WorkbookBeforeSave etc.
Then loop through the Sheet.Shapes collection checking for changes and revert them.
You will have to know the original size and locations.
Have you thought of just locking them and protecting the sheet?

Resources