You can't use obj.Visible = False
to minimize Edge. The reason is the same as what I said before: Edge doesn't have an API that VBA can use. In this situation, we can only try to see if calling shell command in VBA can minimize the window.
We need to use a third-party tool called NirCmd to minimize the window. After downloading and moving the tool to Windows directory, we can use the following line in VBA to minimize Edge window:
Call Shell("nircmd win min process msedge.exe")
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou