Haven't done this, but check out Skyride from boulder, $10, bike goes on rack in front of bus. I'm sure you can find the schedule & other info here:
http://www.rtd-denver.com/
The same site has the 411 on local bus info to get you from Longmont to Boulder, if you don't have time to ride.