Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created April 30, 2021 19:29
Show Gist options
  • Save JoeGlines/03394d3c5a37190f03cd236869041d74 to your computer and use it in GitHub Desktop.
Save JoeGlines/03394d3c5a37190f03cd236869041d74 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
#SingleInstance,, Force
Browser_Forward::Reload
Browser_Back::
try XL := ComObjActive("Excel.Application") ;handle to running application
Catch {
MsgBox % "no existing Excl ojbect: Need to create one"
XL := ComObjCreate("Excel.Application")
XL.Visible := 1 ;1=Visible/Default 0=hidden
}
XL.Visible := 1 ;1=Visible/Default 0=hidden
MsgBox % "is an object? " IsObject(XL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment