kinsa kabalo mo program ug open office (macro)?

kung naa... mka hatag mo ug sample program ani?

I want to do is.... when I click a button, it will copy the value of the button..

for example, Button A is : 1000 . when I click button A, it will be copied and I can just paste it on any program like notepad, ms word, excel..

anyone? thanks ....