Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Obtaining contents of a comment in LibreOffice Calc

  • 30-12-2022 2:08pm
    #1
    Registered Users, Registered Users 2 Posts: 8,593 ✭✭✭


    Hi.


    Got some spreadsheets that have cells with information stored in the comments. Is there a formula/function that I can use which will extract the text from the comment and populate it into a cell?

    There is too much to undertake manually.


    Thanks.



Comments

  • Moderators, Technology & Internet Moderators Posts: 1,336 Mod ✭✭✭✭croo


    DId you find a function @funkey_money?

    If not you can add a macro/function that does it

    REM Example to read a cells comments
    Function myReadComment(incell As Variant) As String
    		myReadComment = ThisComponent.CurrentController.ActiveSheet.getCellRangeByName(incell).getAnnotation().getString()
    End Function
    

    To use it to get the comments of cell A1 use

    =myReadComment("A1")



  • Registered Users, Registered Users 2 Posts: 8,593 ✭✭✭funkey_monkey


    @croo - no I didn't, but thanks for that. I'll store it off for next time.



Advertisement