User-Defined Functions

பயனர்-வரையறுத்த செயலாற்றிகளை நீங்கள் LibreOffice கல்க் ஆவணத்தில் பின்வரும் வழிமுறைகளில் பயன்படுத்தலாம்.

Defining A Function Using LibreOffice Basic

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic.

  2. Click the Edit button. You will now see the Basic IDE.

  3. Enter the function code. In this example, we define a VOL(a; b; c) function that calculates the volume of a rectangular solid with side lengths a, b and c:

    Function VOL(a, b, c)
    VOL = a*b*c
    End Function

  4. அடிப்படை- IDE சாளரத்தை மூடு.

    Your function is automatically saved in the default module and is now available. If you apply the function in a Calc document that is to be used on another computer, you can copy the function to the Calc document as described in the next section.

Copying a Function To a Document

In stage 2 of "Defining A Function Using LibreOffice Basic", in the Macro dialog you clicked on Edit . As the default, in the Macro from field the My Macros - Standard - Module1 module is selected. The Standard library resides locally in your user directory.

If you want to copy the user-defined function to a Calc document:

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic .

  2. பெருமத்திலிருந்து புலத்தில் என் பெருமங்கள் - செந்தரம் - நிரல்கூறு 1 ஐத் தேர்ந்தெடுத்து தொகு ஐச் சொடுக்குக.

  3. In the Basic-IDE, select the source of your user-defined function and copy it to the clipboard.

  4. Close the Basic-IDE.

  5. Choose Tools - Macros - Organize Macros - LibreOffice Basic .

  6. பெருமத்திலிருந்து புலத்தில் என் பெருமங்கள் - செந்தரம் - நிரல்கூறு 1 ஐத் தேர்ந்தெடுத்து தொகு ஐச் சொடுக்குக.

  7. Paste the clipboard contents in the Basic-IDE of the document.

Applying a User-defined Function in LibreOffice Calc

Once you have defined the function VOL(a; b; c) in the Basic-IDE, you can apply it the same way as the built-in functions of LibreOffice Calc.

  1. கல்க் ஆவணத்தைத் திறப்பதோடு A1, B1, மற்றும் C1 கலங்களிலுள்ளa, b, மற்றும் c போன்ற செயலாற்றி அளவுருக்களுக்கான எண்களை உள்ளிடுக.

  2. Set the cursor in another cell and enter the following:

    =VOL(A1;B1;C1)

  3. The function is evaluated and you will see the result in the selected cell.

Please support us!