我有一个计算长度的Excel工作表。 我必须迭代一个起始值,直到其他两个值可比较为止。
两个问题: 1.没有值写入Cell(9,6) 2. If函数应返回false,但始终跳至“ Exit For”
我语法失败。我尝试了各种发现的东西,但没有发现错误。
对于#1,我尝试使用Range()。Value调用单元格 对于#2,我尝试了If(Abs())<= ...
Sub Berechnung()
Dim tolerance As Integer
Dim i As Integer
tolerance = 0.2
For i = 500 To 1 Step -0.5
Sheets("Tabelle1").Cells(9, 6).Value2 = i
If (Worksheets("Tabelle1").Cells(6, 31).Value2 - Worksheets("Tabelle1").Cells(6, 33).Value2) <= tolerance Then
Worksheets("Tabelle1").Cells(6, 9).Interior.ColorIndex = 4
Exit For
Else:
End If
Next i
Debug.Print i
MsgBox "Wert wurde berechnet"
End Sub
答案 0 :(得分:1)
问题
SQLWARNING
。CREATE DEFINER=`root`@`localhost` PROCEDURE `usp_SavePerson`(
Username VARCHAR(100))
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
ROLLBACK;
INSERT INTO Log VALUES (RETURNED_SQLSTATE,MESSAGE_TEXT);
RESIGNAL;
END;
DECLARE EXIT HANDLER FOR SQLWARNING
BEGIN
ROLLBACK;
INSERT INTO Log VALUES (RETURNED_SQLSTATE,MESSAGE_TEXT);
RESIGNAL;
END;
START TRANSACTION;
INSERT INTO user (Username)
VALUES (Username);
COMMIT;
END
和Value2
应该是双打。答案
i