View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
T Lavedas T Lavedas is offline
external usenet poster
 
Posts: 38
Default current IE window using VBA

On Aug 1, 9:17*am, Gary''s Student
wrote:
Thanks.

Can GetObject get a handle on a window that has been "shelled"??

For example:

CreateObject("Shell.Application").FindFiles
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime

brings up Windows Desktop Search on my computer. *I would like to position
and size this window line:

xxx.Top = 0
xxx.Left = 0

But I don't know how to Set xxx.

--
Gary''s Student - gsnu200797


No, the window opened by FindFiles is an explorer window which does
not expose itself to the COM interface. So GetObject cannot connect
to it. That requires an API call, which is supported in VBA, but is
way beyond my knowledge.

Tom Lavedas
===========