My same old macro works ok having a negative number affect my other formulas ? How can I limit the value drop below zero?
Sub Low()
Range("D4").Value = Range("D4").Value - 1
End Sub
My same old macro works ok having a negative number affect my other formulas ? How can I limit the value drop below zero?
Sub Low()
Range("D4").Value = Range("D4").Value - 1
End Sub
Perhaps
Sub Low()
Range("D4").Value = ABS(Range("D4").Value - 1)
End Sub
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi Ferohers
If I understand, perhaps thisPlease Login or Register to view this content.
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks