Forum Discussion

Octavio_RamosMy_usern's avatar
Octavio_RamosMy_usern
Copper Contributor
Apr 05, 2023
Solved

VBA language macro

Hi Cuong,   I am starting to work with VBA language to generate a macro with the If...Then...Else statement, and I have a problem in a line that contains a formula. I copy my macro and highlight th...
  • Octavio_RamosMy_usern's avatar
    Octavio_RamosMy_usern
    Apr 05, 2023

    HansVogelaar 

    Hi Hans,
    Thank you for answering me, the macro that I am doing is used to determine the monetary charge that must be made to the users of the wastewater treatment plants when their contamination levels are higher than those allowed by the authority.
    Once the contamination value of each of the parameters that must be met is known, a non-compliance index is established and, depending on the non-compliance index, it is the charge in money.
    The ranges will be for example
    0.1<= Index >0.5
    0.5 <= Index < 1
    Etc

Resources