였λ₯˜ λ©”μ‹œμ§€

Defines the error message that is displayed when invalid data is entered in a cell.

였λ₯˜ λ©”μ‹œμ§€μ™€ ν•¨κ»˜ 맀크둜λ₯Ό μ‹œμž‘ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. 이 νŽ˜μ΄μ§€μ˜ λμ—μ„œ μƒ˜ν”Œ λ§€ν¬λ‘œκ°€ μ œκ³΅λ©λ‹ˆλ‹€.

이 λͺ…령을 μ‚¬μš©ν•˜λ €λ©΄...

From the menu bar:

Choose Data - Validity - Error Alert tab.

From the tabbed interface:

On the Data menu of the Data tab, choose Validity - Error Alert tab.


μœ νš¨ν•˜μ§€ μ•Šμ€ 수치 μž…λ ₯μ‹œ 였λ₯˜ λ©”μ‹œμ§€ ν‘œμ‹œ

μ˜¬λ°”λ₯΄μ§€ μ•Šμ€ 데이터가 셀에 μž…λ ₯λ˜μ—ˆμ„ λ•Œ λ‚΄μš© μ˜μ—­μ— μž…λ ₯ν•œ 였λ₯˜ λ©”μ‹œμ§€λ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€. 이λ₯Ό μ‚¬μš©ν•˜λ©΄ 잘λͺ»λœ μž…λ ₯을 λ°©μ§€ν•˜λŠ” λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.

μ–΄λ– ν•œ κ²½μš°λ“  "정지"λ₯Ό μ„ νƒν•˜λ©΄ 잘λͺ»λœ ν•­λͺ©μ΄ μ‚­μ œλ˜κ³  이전 값이 셀에 λ‹€μ‹œ μž…λ ₯λ©λ‹ˆλ‹€. μ΄λŠ” μ·¨μ†Œ λ²„νŠΌμ„ 눌러 "κ²½κ³ " 및 "정보" λŒ€ν™” μƒμžλ₯Ό 닫을 κ²½μš°μ—λ„ λ™μΌν•˜κ²Œ μ μš©λ©λ‹ˆλ‹€. 확인 λ²„νŠΌμ„ 눌러 λŒ€ν™” μƒμžλ₯Ό 닫을 κ²½μš°μ—λŠ” 잘λͺ»λœ ν•­λͺ©μ΄ μ‚­μ œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

λ‚΄μš©

λ™μž‘

잘λͺ»λœ 데이터가 셀에 μž…λ ₯될 λ•Œ μˆ˜ν–‰ν•  μž‘λ™μ„ μ„ νƒν•©λ‹ˆλ‹€. "정지" μž‘λ™μ€ 잘λͺ»λœ ν•­λͺ©μ„ κ±°λΆ€ν•˜κ³  확인을 눌러 λ‹«μ•„μ•Ό ν•˜λŠ” λŒ€ν™” μƒμžλ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€. "κ²½κ³ " 및 "정보" μž‘λ™μ€ 확인 λ˜λŠ” μ·¨μ†Œλ₯Ό 눌러 닫을 수 μžˆλŠ” λŒ€ν™” μƒμžλ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€. 잘λͺ»λœ ν•­λͺ©μ€ μ·¨μ†Œλ₯Ό λˆ„λ₯Ό κ²½μš°μ—λ§Œ κ±°λΆ€λ©λ‹ˆλ‹€.

찾아보기

잘λͺ»λœ 데이터가 셀에 μž…λ ₯될 경우 μ‹€ν–‰ν•  맀크둜λ₯Ό 선택할 수 μžˆλŠ” 맀크둜 λŒ€ν™” μƒμžλ₯Ό μ—½λ‹ˆλ‹€. λ§€ν¬λ‘œλŠ” 였λ₯˜ λ©”μ‹œμ§€κ°€ ν‘œμ‹œλœ 후에 μ‹€ν–‰λ©λ‹ˆλ‹€.

제λͺ©

잘λͺ»λœ 데이터가 셀에 μž…λ ₯될 경우 ν‘œμ‹œν•  맀크둜 λ˜λŠ” 였λ₯˜ λ©”μ‹œμ§€μ˜ 제λͺ©μ„ μž…λ ₯ν•©λ‹ˆλ‹€.

였λ₯˜ λ©”μ‹œμ§€

잘λͺ»λœ 데이터가 셀에 μž…λ ₯될 경우 ν‘œμ‹œν•  λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€.

Sample macro:

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:

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
  

Please support us!