Why are you using macro substitution when it's totally unnecessary?
>
>xname=ALLTRIM(thisform.c24.value)
>thisform.grid1.column24.hEADER1.name='&xname'
>
>
>>I want to change the grid header (captaion name) like this.
>>thisform.grid1.column24.hEADER1=thisform.c24.value
--sb--