excel vba - How to minimize userform when workbook is maximized -
i have problem, please me! story: have userform in excel 2016 (64bit), userform activity in multi workbook. steps:
- open userform
- open more 2 workbooks
- minimize userform, minimize workbook we're opening
- maximize workbook minimized @ 3.
- how show userform minimize mode? used showwindow lhwnd, sw_show
(sw_show = 2), showwindow doesn't work.
can me @ step 5? thank much!!!
source:
private declare ptrsafe function showwindow lib "user32" (byval hwnd long, byval ncmdshow long) long <br> private declare ptrsafe function findwindow lib "user32" alias "findwindowa" (byval lpclassname string, byval lpwindowname string) long public function showwin(strclassname string, strwindowname string, lngstate long) 'get window handle. dim lngwnd long dim intret integer lngwnd = findwindow(strclassname, strwindowname) showwind = showwindow(lngwnd, lngstate) end function
note: userform have minimine button, maximixe button
wiki
Comments
Post a Comment