For the hex use this guide.
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1
You could use the same guide for the switch unless it has switch chips that you want to take advantage of
and then this is a good guide.
https://www.youtube.com/watch?v=Rj9aPoyZOPo