Code: Select all
F1::
Xl := ComObjActive("Excel.Application") ;creates a handle to your currently active excel sheet
Xl.Sheets("Sheet1").Activate
return
My idea was this code:
Code: Select all
F2::
count=1
Xl := ComObjActive("Excel.Application") ;creates a handle to your currently active excel sheet
Xl.ActiveSheet.Range("b1").select
send ^c
#HotkeyModifierTimeout, 100
sleep 500
StringReplace, clipboard, clipboard, `r`n,, all
Tipo=%Clipboard%
WinActivate, PORMEM_ADE1
Xl := ComObjActive("Excel.Application") ;creates a handle to your currently active excel sheet
Xl.Sheets("%Tipo%").Activate
return