LibreOffice 24.8 Help
Defines the error message that is displayed when invalid data is entered in a cell.
Ergaa dogoggoraan maakroo eegaluu dandeessa.Eddattoon maakroo umaa fulaa kanaa irratti kennama.
Displays the error message that you enter in the Contents area when invalid data is entered in a cell. If enabled, the message is displayed to prevent an invalid entry.
Haaloota lameeniti,yoo "Dhaabbii" filattee,galmii fashalaawaan baduun gatiin darbee lamataa man'ee seena.Halaama kanaan qaaqoota "Akeekkachiisa" fi "Odeeffannoo" yoo cuftu qabdoo Haqii cuqaasi.Yoo qaaqotaa qabdooEyyeen cuftee,galmii fashalaawaa hin haqamu.
Yommuu deetaan fashalaa man'ee seenu gocha ta'uun barbaachisuu fili. Gochi "Dhaabbi" galma fashalaa gatuufi Tole cuqaasuudhaan qaqaa haquu barbaadduu agarsiisa.Gochaawwwan "Akeekkachiisa" fi "Odeeffannoo" qaqoota Tole ykn Dhiisi cuqaasun cufamuu danda'an agarsiisa.Galmii fashalaawa kan gatamuu yoo Dhiisi cuqaaste qofa.
QaaqaMaakroo iddoo itti yommuu deetaan fashaalaawee man'ee seenu maakiroo itti filattu bana.Erga eergaan dogoggoraa iftaayee dooba gochii maakiroo rawwata.
Mata duree Maakiroo ykn Ergaa doggoggoraa jedhu galchuun deetaan doggoggoraa yommuu man'ee seenuu mul'isuuf oola.
Deetaan doggoggoraa yommuu man'ee seenuu ergaa mul'isuu barbaaddu galchi.
Below is a sample function that can be called when an error occurs. Note that the macro takes in two parameters that are passed on by LibreOffice when the function is called:
CellValue: The value entered by the user, as a String.
CellAddress: The address of the cell where the value was entered, as a String prefixed with the sheet name (e.g: "Sheet1.A1").
The function must return a Boolean value. If it returns True, the entered value is kept. If the function returns False, the entered value is erased and the previous value is restored.
Function ExampleValidity(CellValue as String, CellAddress as String) as Boolean
Dim msg as String
Dim iAnswer as Integer
Dim MB_FLAGS as Integer
msg = "Invalid value: " & "'" & CellValue & "'"
msg = msg & " in cell: " & "'" & CellAddress & "'"
msg = msg & Chr(10) & "Accept anyway?"
MB_FLAGS = MB_YESNO + MB_ICONEXCLAMATION + MB_DEFBUTTON2
iAnswer = MsgBox (msg , MB_FLAGS, "Error message")
ExampleValidity = (iAnswer = IDYES)
End Function