$NAME = "BOB"; $worksheet_$NAME->write('A2', "$NAME is here");