I have a VBA project I wrote (on a machine running 2010) whcih I'm now trying to test on a machine running 2007.
The code doesn't appear to be complicated:
It's highlighting the word FORMAT as a compile error.
What on earth is wrong? And help would be hugely appreciated.
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
The code doesn't appear to be complicated:
Code:
Private Sub userform_activate()
cmbRAD.RowSource = ""
cmbRAD.Clear
cmbPCO.RowSource = ""
cmbPCO.Clear
cmbRAD.Value = Worksheets("Calculations").Range("B1")
cmbPCO.Value = Worksheets("Calculations").Range("B2")
txtDiscount.Value = Format(Worksheets("Calculations").Range("H10"), "Percent")
txtSwitch.Value = Format(Worksheets("Calculations").Range("H11"), "Percent")
cmbRAD.RowSource = "Geography!G2:G31"
Call populateContact
Call populatePCO
End Sub
It's highlighting the word FORMAT as a compile error.
What on earth is wrong? And help would be hugely appreciated.
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen