Go to Insert Tab --> QR & Barcode --> QR Code.
In the Insert QR Code dialog, choose the QR type (e.g. text, URL, etc.) and click Insert.
Go to Insert Tab --> QR & Barcode --> Barcode
In the Insert Bar Code dialog:
Select a barcode format from the dropdown list
Enter the data you want to encode
Click Insert
Click the inserted code (it is treated like an image):
The Barcode Options panel opens on the right pane. It includes options to Resize the image , Change color or background, Add borders, Adjust alignment / arrangement, and more.