In cookies you can use shortening in place of butter, but it does change flavor and texture. You would need to add extra salt to the dough. The texture will be more cakey, and less crisp with shortening.