How can I minimize Excel and a new open excel while my application is running?
I wrote the following code, but the code does not work.
If you are wondering why I want to minimize Excel, because my application fails if the user clicks on any excel cell!
Imports System.Management Imports Microsoft.Office.Interop Imports System.Runtime.InteropServices Public Class Form1 Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick Timer1.Enabled = True Timer1.Interval = 100 Timer1.Start() End Sub End Class
source share