working in a function and trying to declare currency variables. I have ten variables declared. I then set each variable to 0 and then use FormatCurrency(1000000#, -1) for each variable.
when I run the code the first 9 variables are set to $1,000,000.00. the tenth variable is set to 100000000. this is the section of the code:
Dim filePath As String
Dim s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11 As String
Dim p, recreq, cpl, dona, c1, c2, civ, totbucks, lic, oth As Currency
Dim chks, recs As Integer
p = 0
recreq = 0
cpl = 0
dona = 0
c1 = 0
c2 = 0
civ = 0
totbucks = 0
lic = 0
oth = 0
p = FormatCurrency(1000000#, -1)
recreq = FormatCurrency(1000000#, -1)
cpl = FormatCurrency(1000000#, -1)
dona = FormatCurrency(1000000#, -1)
c1 = FormatCurrency(1000000#, -1)
c2 = FormatCurrency(1000000#, -1)
civ = FormatCurrency(1000000#, -1)
totbucks = FormatCurrency(1000000#, -1)
lic = FormatCurrency(1000000#, -1)
oth = FormatCurrency(1000000#, -1)