Just go into the logitech gaming software, click the tab with the microchip on it and right click the DPI buttons, hit edit and assign a new macro to it.
If this doesn't work, try clicking 'Unassign' before adding a new macro, and check to make sure the unassign worked.