if then 后面应该是某个语句,而不是 elseif,类似如下:
if a>b then if c>a then msgbox elseif b>c then msgbox else msgbox end if end if