Ramayana is not "from" the Vedas. Vedas predate Ramayana.
However, "Bhagavadgeetha", which is popularly* considered to be the holiest of Hindu texts is from Mahabharatha, which takes place after Ramayana.
* I say popular because there is no universal agreement on Bhagavadgeetha to be canonical source of Hindu philosophy and religion. However, it has a very good condensation of the teachings of various hindu philosophical schools which can be understood with comparatively less study than the Vedas, the Vedanta and other bodies of knowledge.
However, "Bhagavadgeetha", which is popularly* considered to be the holiest of Hindu texts is from Mahabharatha, which takes place after Ramayana.
* I say popular because there is no universal agreement on Bhagavadgeetha to be canonical source of Hindu philosophy and religion. However, it has a very good condensation of the teachings of various hindu philosophical schools which can be understood with comparatively less study than the Vedas, the Vedanta and other bodies of knowledge.