istyle = GetWindowLong(hwndform, GWL_STYLE)
istyle = istyle And Not WS_CAPTION
X = SetWindowLong(hwndform, GWL_STYLE, istyle)
DrawMenuBar hwndform
'ThunderXframe' in the FindWindow call above refers to the userforms class code name that microsoft developers had for EXCEL 97. For EXCEL 2000 applications and up you should use 'ThunderDframe'. No doubt future versions of EXCEL will have their own codes too, look 'em up on google if you need them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.