How to make office component (It would apear in menu in Word).

I have never do anything like this. (Only exe, ocx, dll)