Hi all
I have come across a bit of a problem in my VBA coding which is throwing up a issue.
I take out a rounding error in my code with this statement, with EntryList declared as an Integer
so if LastCol is 71 then EntryList is set to 30 (ie 71-10 = 61 & 61 / 2 = 30.5 therefore the Integer is 30)....perfect
however
if LastCol is 73 then EntryList is being set to 32 (which indicates VBA/Excel is rounding up not taking the Integer from the Answer which is 31)
Have I found an anomaly, or am I missing something
Many thanks, am flummoxed
S
I have come across a bit of a problem in my VBA coding which is throwing up a issue.
I take out a rounding error in my code with this statement, with EntryList declared as an Integer
Code:
EntryList = (LastCol - 10) / 2
however
if LastCol is 73 then EntryList is being set to 32 (which indicates VBA/Excel is rounding up not taking the Integer from the Answer which is 31)
Have I found an anomaly, or am I missing something
Many thanks, am flummoxed
S