I have been trying the code below to Maximize and then close a Browser. But it is not working on line 4 , line 6 works
I also tried:
But more than one Browser is open (i have 2 browsers open, only 1 called Browser)
What is wrong with my logic? I see this code all over the web.
thx
Code:
Browser("Browser").Page("Page").WebTable("Fax Status").Highlight(0)
Browser("Browser").Page("Page").Sync
hWnd = Browser("Browser").GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Maximize
Window("hwnd:=" & hWnd).Close
I also tried:
Code:
hWnd = Browser("Browser").GetROProperty("hwnd")
title= Browser("micClass:=Browser", "hwnd:=" & hWnd).GetROProperty("title")
Window("title:=" & title).Maximize
But more than one Browser is open (i have 2 browsers open, only 1 called Browser)
What is wrong with my logic? I see this code all over the web.
thx