Your ValueID var should be a string.
ValueID = '123, 234, 345, 466, 456';
, , , , , SQL- String.
, , @ahmed abdelqader .
declare @ValueID varchar(200)
set @ValueID = '123, 234, 345, 466, 456'
exec ('Select * from Tbl1 where someValue in ('+ @ValueID +')')