I think I may have found the reason why i am getting the error. It's because I put the code before I call sub myformat() which contains these codes
With FpSpread1
'.EnableCrossSheetReference = False
.AllowDragFill = True
.AllowUserFormulas = True
.EditModeReplace = True
.AutoClipboard = True
.Sheets.Count = 18
.Sheets(0).SheetName = "1stGrading"
.Sheets(1).SheetName = "2ndGrading"
.Sheets(2).SheetName = "1-2Deliberation"
.Sheets(3).SheetName = "3rdGrading"
.Sheets(4).SheetName = "1-3Deliberation"
.Sheets(5).SheetName = "4thGrading"
.Sheets(6).SheetName = "FinalGrade"
.Sheets(7).SheetName = "Conduct1st"
.Sheets(8).SheetName = "Conduct2nd"
.Sheets(9).SheetName = "Conduct3rd"
.Sheets(10).SheetName = "Conduct4th"
.Sheets(11).SheetName = "ConductFinal"
.Sheets(12).SheetName = "RHGP1st"
.Sheets(13).SheetName = "RHGP2nd"
.Sheets(14).SheetName = "RHGP3rd"
.Sheets(15).SheetName = "RHGP4th"
.Sheets(16).SheetName = "RHGPFinal"
.Sheets(17).SheetName = "Attendance"
End With
I am doing this in Form_Load that's why I am getting the error. sub myformat() should come first before acceptarrowkeys.
num.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.None
num1.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.None
With FpSpread1
.Sheets(0).DefaultStyle.CellType = num
.Sheets(1).DefaultStyle.CellType = num
.Sheets(2).DefaultStyle.CellType = num
.Sheets(3).DefaultStyle.CellType = num
.Sheets(12).DefaultStyle.CellType = num
.Sheets(12).Columns(120).CellType = num1
End With
myformat()