You will have to sell your shares to the company during the buyback period. Generally, companies pay a premium to the current stock price to take care of this issue.