Monday, November 17, 2025

How to stop applicaion in seconds in excel - step by step macro wait for one second - Excel Sleep

 Application.Wait (Now + TimeValue("00:00:01"))

or

Application.Wait Now + TimeSerial(0, 0, 5)


Note: This is only work in Excel VBA, Not in Word VBA.

How to copy a cell in Excel with VBA and how to show MessageBox in excel - alert in Excel

  Selection.Copy

 MsgBox "Copied ---- " & Selection


Note:- Copy Only a single cell , if more than one cell copied, it will give error

Thursday, November 13, 2025

Tuesday, November 11, 2025

How to type auto in windows 11 with powershell - sending keys in power shell

 [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(100, 200)



$wshell = New-Object -ComObject wscript.shell

$wshell.AppActivate("Title of the application window") # Activate the target window

Start-Sleep -Seconds 5  # Give time for the window to activate

$wshell.SendKeys("Hello World{ENTER}")


After 5 seconds, it will paste in the window where cursor is clciked