Use the Shares Sold dialog to record a sale. You have the option of selecting the specific shares you want to sell in the Specify lots dialog. You can tell Quicken whether you want to sell all the shares in a particular lot, or just some of those shares.
...