use indirect
say the sheet name is in a1 then in say a2 put
=INDIRECT("'"&A1&"'!D2") this will reference cell D2 of whatever sheet name is in a1