Basemraven
New Member
- Joined
- Jan 19, 2022
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
i use a simple (if) line to add a text to a cretin cell based on a cell value
but the problem is all 0,## values (0,01/0,02/-0,01.......) considered as 0 and not as above 0
the code i use is
in case of 0 then text1
between (-5 , 5 ) text2
above than -15 or +15 text3
but the problem is all 0,## values (0,01/0,02/-0,01.......) considered as 0 and not as above 0
the code i use is
VBA Code:
If com = 0 Then Range("A" & LastRow + 1) = "Summe:"
If com <= 5 And com > 0 Then Range("A" & LastRow + 1) = "Ausbuchen"
If com < 0 And com >= -5 Then Range("A" & LastRow + 1) = "Ausbuchen"
If com >= 15 Or com <= -15 Then Range("A" & LastRow + 1) = "Stehen lassen"
in case of 0 then text1
between (-5 , 5 ) text2
above than -15 or +15 text3