I would create a query that I can output to Excel
STEP 1: create and save a query, something like
"SELECT <YOURFIELD1> AS CODE, <YOURFIELD2> AS NAME, <YOURFIELD3> AS TITLE FROM <MYTABLE>"
STEP2: output the query to Excel
DoCmd.OutputTo acOutputQuery, <yourqueryname>, acFormatXLS,, -1
CODE...