Excel VBA program crashing when selecting from listbox [closed] - excel

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I am really puzzled with some error causing crash and I don't know what it is. Can someone identify the problem?
https://www.dropbox.com/s/3l3q985y75n9nup/xxx.xlsb?dl=0
In form "SettingsForm" line containing Me.CheckBoxXlGrouped2.Value = .XlGrouped2 causes crash.
In excel Ctrl+r, tab "SQL Tables and Columns" when you select something from the left listbox (listbox3) it will crash excel.
However if you comment out Me.CheckBoxXlGrouped2.Value = .XlGrouped2 the program won't crash.

Ok it appears whenever I added new checkbox after deleting the old one it inherited some bugged stuff from previous one that was causing crashes. So I kept the old one, added new one then deleted the old one. Now it works again. Weird.

Related

SQL Alchemy - delete orphan from multiple one to one relationships on one entity [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I got defined on one table these two one to one relationships.
home_lineup_id = Column(Integer, ForeignKey("Lineup.id"))
home_lineup = relationship("Lineup", foreign_keys=[home_lineup_id], cascade="all, delete-orphan", single_parent=True)
guest_lineup_id = Column(Integer, ForeignKey("Lineup.id"))
guest_lineup = relationship("Lineup", foreign_keys=[guest_lineup_id], cascade="all, delete-orphan", single_parent=True)
And quite obviously I´d like the delete orphan fuctionality to work. This solution rather oddly deletes only half the Lineups presumably ones from the first relationship.
Is there any way to achieve this?
Edit: I´m using PostgreSQL.
Turns out this code is completely fine and works as intended. It was just a typo elsewhere.

Excel multiple IF AND [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am struggling with an excel formula with multiple IF AND conditions. maybe you can help me. Here is an explanation of what I want to achieve:
List different prices if TWO conditions are met.
If A1=Ferrari AND B1=red, price=500; IF A1=Ferrari AND B1=gold, price=550; IF A1=Toyota AND B1=red, price=100, IF A1=Toyota and color=gold, price=110, else leave cell blank´
I hope you understand what I want to achieve and can help me.
This is what I tried but it gives me an error. I am using google sheets by the way.
=IF(AND(I27="ferrari"; K27="red")Variables!$R$1;IF(AND(I27="ferrari"; K27="gold")Variables!$R$2;IF(AND(I27="toyota"; K27="red")Variables!$V$3;IF(AND(I27="toyota"; K27="gold")Variables!$V$4;""))))
I think you've got your semi colons and commas mixed up! Try this...
=IF(AND(I27="ferrari",K27="red"),Variables!$R$1,IF(AND(I27="ferrari",K27="gold"),Variables!$R$2,IF(AND(I27="toyota",K27="red"),Variables!$V$3,IF(AND(I27="toyota",K27="gold"),Variables!$V$4,""))))
You were also missing commas after some of your closing parentheses.

Can you please identify the error in this code [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I have a code that is giving me a compile error:
Expected: Expression and it specifically highlights the first IF of
the formula.
Code:
Sub ProduceTheListOfRecourseAccounts()
' Run formulas to populate the recourseable accounts on the Recourse Items Page
Sheets("Recourse Items").Range("A2:A & LastRow).FormulaArray = "=IF(ISERROR(INDEX('Formula sheet'!$A:$F,SMALL(IF('Formula sheet'!E:E>'WBC Recourse Summary'!$E$15,ROW('Formula sheet'!A:A)),ROW('Formula sheet'!1:1)),1)),"""",INDEX('Formula sheet'!$A:$F,SMALL(IF('Formula sheet'!E:E>'WBC Recourse Summary'!$E$15,ROW('Formula sheet'!A:A)),ROW('Formula sheet'!1:1)),1))"
End Sub
Please help me identify what I am doing wrong. This is my first VBA array, all normal formulas are working well in VBA.
Many thanks
You didn't close your string. You want:
"A2:A" & LastRow
Looks like this was answered in a comment.

Azure functions pulse - no data [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I recently created my first Azure Function, which runs fine - I've had ~16,000 requests in the last hour which I can see under the monitor tab. However the pulse telemetry screen shows nothing - just empty graphs as if no functions are being run. I've done the whole opening new tabs, different browsers, reboot thing and no change.
Any ideas?
We identified the root cause of the problem and fixed this.
The fix has been deployed to production. Please try again.

Is there a limitation of how much code can be inserted into Excel or is it a bug? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have an excel spreadsheet that is indefinitely code heavy, but only in Excel coding, not VBA, 90% of all text has code one form or another wrapped in it, around it or is created by it.
Is there a limitation of how much code can be written into a page before it starts to show itself as "normal text" even though it has a "=" before it?
=IF(ROW($AI1)>$AJ$2, "", INDEX(AB$4:AB$23, SMALL(IF(AA$4:AA$23=Criteria, ROW($AA$4:$AA$23), ""), ROW($AI1))))
That is the code, it shows up as text even though the field is shown as "General" for it's formatting, now mind you I have over 400 fields integrated with code itself. It is pretty much a calendar, and soon to be one that updates specific fields on a daily basis upon starting the sheet up. Or so it my hope.
But when I enter the code above, the sheet doesn't accept it as code, but as text so the entire script is shown, instead of the field with the data it is meant to show instead.
Is this a bug in Microsoft Excel, or is there an actual limitation of what Excel can handle per sheet for code? I can't imagine I found it, because this sheet is far from complete, and I've seen more complex ones out there...
Try pressing Control+Accent Grave (Cntl+`). If you're in formula view mode, you'll see formulas instead of values.

Resources