Hi all,

I am trying to prepare a codebook document that provides details on all variables (including their labels, value codes etc). Similar topic was discussed earlier, here. My query is slightly different as I want the value codes exported as well, and I want to export it to word. I want the output to have the following columns:
Serial No Var name Var label value codes for label
1 a1 gender 1=male; 2=female

I know `describe, replace` gives me variables, variable labels, and names of value labels, but could we possible tweak it to get the value codes for the labels too (as in 1=male/2=female in the example above)? Or is there any other command that can do this?

Any help is appreciated. Thanks!
PS: I have stata MP 14.1