Steps below assume that
- COM Port 1 is available for use on the PC - see step 25 to use another com port number
- Office document to be customised has previously had module SERIAL_PORT_VBA installed and tested.
- Close all Office documents before continuing
- Open the required Office document in the RibbonX Editor
- Confirm that the document name appears on the left hand side
- From the RibbonX menu, select Insert > Office 2010+ Office UI Part
- Confirm that customUI14.xml appears under the document name on the left
- Copy-and-paste contents of file RIBBON_2010.xml into the empty area on the right
- Click on Validate from the RibbonX editor
- Confirm the Custom XML UI is well formed message box
- Click Save from the RibbonX editor menu
- Close the RibbonX editor
- Re-open the Office document as normal in Excel or Word
- Confirm that a new tab COM 1 is present in the document ribbon menu
- Confirm that the new tab contains icons similar to the image in this folder
- Select tab COM Port 1 and click the Start icon
- Confirm that error message 'Cannot run the macro COM_PORT_CONTROL_1' appears
- Download file SERIAL_PORT_RIBBON.bas from this folder
- Enter the VBA Environment (Alt-F11)
- From VBA Environment, view the Project Explorer (Control-R)
- From Project Explorer, right-hand click and select Import File
- Import file SERIAL_PORT_RIBBON.bas
- Check that a new module SERIAL_PORT_RIBBON is created and visible in the Modules folder
- Close and return to Office application (Alt-Q)
- IMPORTANT - save document as type Macro-Enabled with a file name of your choice
- IMPORTANT - test here assumes COM Port number 1 is available on the PC
- Change line
Const Port_Number As Long = 1at start of SERIAL_PORT_RIBBON to another port number if required - Re-select tab COM Port 1 and click the Start icon
- Confirm that message Start Result=True is displayed
- Test other icons with a second device attached to the COM Port