function setvisibility(h, state)

% Controls the visibility of the Excel App
set(h.comserver,'visible',state);