private Declare Function FindWindowW& Lib "user32" (ByVal lpClassW&, ByVal lpTitleW&)
private Declare Function GetWindowRect& Lib "user32" (ByVal hWnd&, r As wRECT)
private Declare Function GetClientRect& Lib "user32" (ByVal hWnd&, r As wRECT)
Type wRECT: L As Long: T As Long: r As Long: b As Long: End Type
....
Private Sub UserForm_Initialize()
dim s$, Hwnd&, r as wRECT
s = Caption
Caption = Caption & Hex$(Timer)
Hwnd = FindWindowW(StrPtr("ThunderDFrame"), StrPtr(Caption))
GetWindowRect hwnd, r
Caption = s
end sub