Field Codes

  • Thread starter Thread starter duub1970
  • Start date Start date
D

duub1970

I'm doing a calculation in a word document using field codes (office 2007) but
I'm trying to represent the result in Hex. Although I am able to do the
caluclation
I want to if the result is bigger than 16 bits (65535) then when I try to
display
as Hex the field code says this is an error "Number cannot be represented in
specified format". Does anyone know if it's possible to display a Hex number
in
a field code bigger than 16 bits ?
 
hi duub1970,

You may need to split the source value into two (or more parts), using INT and MOD functions (presumably using 16 as the divisor),
converting each part's value to the HEX equivalent as a separate entity.
 
Back
Top