AutoHotkey and Excel - AutoHotkey Tutorial #10
This video tutorial shows, how to automate Excel with AutoHotkey. It shows how to open an Excel sheet, how work with data and variables and how to save the Excel sheet again. All done by a simple AutoHotkey script.
You could also watch:
🔵 The Beginner's Guide to AutoHotkey - https://youtu.be/AvzhaoDxd8Q
🔵 Install and Run your First AHK Script - https://youtu.be/k7e9MrP-U_g
0:05 Create our Excel ahk script in action
Our script will be Hotkey driven. We are creating a handle to a new Excel instance. We will set our Excel instance as visible, because Microsoft sets is as invisible per default. Furthermore we add a new workbook.
1:48 Open a specific Excel sheet
Instead of open a new Excel instance, we can open a saved Excel sheet instead with AutoHotkey.
2:46 Variable for our path
Instead of hard-coding our path, we can create a variable instead.
3:53 Let the user specify the Excel file to open
We use FileSelectFile to let the ahk user specify, which sheet to open.
5:10 Targeting our Excel instance
Using the AutoHotkey ComObjActive to target an open Excel sheet. We chose a specific cell (range) to write something in. Again we can use a variable instead of hard-coding.
7:35 Looping through an Excel column
Use a while loop to loop through our range.
11:10 Copy cells
We can use the ahk property 'Copy' to copy Excel cells.
11:54 Save an Excel sheet with AutoHotkey
We can either save our Excel sheet with an overwrite or save to a new path.
Connect with me:
🔔 Subscribe - http://www.youtube.com/user/klogeanders?sub_confirmation=1
💼 LinkedIn - https://www.linkedin.com/in/andersjensens/
👥 Facebook - https://www.facebook.com/andersjensenorg
💌 Email Newsletter - https://andersjensen.org/email-newsletter/
#autohotkey #ahk #scripting
Видео AutoHotkey and Excel - AutoHotkey Tutorial #10 канала Anders Jensen
You could also watch:
🔵 The Beginner's Guide to AutoHotkey - https://youtu.be/AvzhaoDxd8Q
🔵 Install and Run your First AHK Script - https://youtu.be/k7e9MrP-U_g
0:05 Create our Excel ahk script in action
Our script will be Hotkey driven. We are creating a handle to a new Excel instance. We will set our Excel instance as visible, because Microsoft sets is as invisible per default. Furthermore we add a new workbook.
1:48 Open a specific Excel sheet
Instead of open a new Excel instance, we can open a saved Excel sheet instead with AutoHotkey.
2:46 Variable for our path
Instead of hard-coding our path, we can create a variable instead.
3:53 Let the user specify the Excel file to open
We use FileSelectFile to let the ahk user specify, which sheet to open.
5:10 Targeting our Excel instance
Using the AutoHotkey ComObjActive to target an open Excel sheet. We chose a specific cell (range) to write something in. Again we can use a variable instead of hard-coding.
7:35 Looping through an Excel column
Use a while loop to loop through our range.
11:10 Copy cells
We can use the ahk property 'Copy' to copy Excel cells.
11:54 Save an Excel sheet with AutoHotkey
We can either save our Excel sheet with an overwrite or save to a new path.
Connect with me:
🔔 Subscribe - http://www.youtube.com/user/klogeanders?sub_confirmation=1
💼 LinkedIn - https://www.linkedin.com/in/andersjensens/
👥 Facebook - https://www.facebook.com/andersjensenorg
💌 Email Newsletter - https://andersjensen.org/email-newsletter/
#autohotkey #ahk #scripting
Видео AutoHotkey and Excel - AutoHotkey Tutorial #10 канала Anders Jensen
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![How to use Random in AutoHotkey - AutoHotkey Tutorial #11](https://i.ytimg.com/vi/a8nMO1zV9Js/default.jpg)
![How to compare Excel Tables/Sheets in Microsoft Power Automate](https://i.ytimg.com/vi/CRJXfVVhYrA/default.jpg)
![The Beginner's Guide to AutoHotkey - AutoHotkey Basics Tutorial](https://i.ytimg.com/vi/AvzhaoDxd8Q/default.jpg)
![How to use Excel in Power Automate Desktop](https://i.ytimg.com/vi/Xtc3bHcDrW4/default.jpg)
![How to use Arrays in AutoHotkey - AutoHotkey Tutorial #5](https://i.ytimg.com/vi/NtO91mr9a5o/default.jpg)
![How to Split PDF files into Multiple Files with Uipath](https://i.ytimg.com/vi/hvKAjJhi4zI/default.jpg)
![How to Automate ANYTHING on your computer using AutoHotKey](https://i.ytimg.com/vi/lQgx8dIflhI/default.jpg)
![How to open Folders, Programs and Websites in AutoHotkey - AutoHotkey Tutorial #6](https://i.ytimg.com/vi/h5dtQSN6IOQ/default.jpg)
![How to use Dynamic Selectors in UiPath | Tutorial](https://i.ytimg.com/vi/gkmjZusQyqk/default.jpg)
![AutoHotkey Tutorial for Beginners| Everything you need to get you started saving time (2020)](https://i.ytimg.com/vi/hZRggm8RkhM/default.jpg)
![How to start with Power Automate Desktop](https://i.ytimg.com/vi/kMVYIlBsros/default.jpg)
![Basic Excel Code Example Autohotkey](https://i.ytimg.com/vi/C4cXu-KJ06M/default.jpg)
![Excel Pivot Tables EXPLAINED in 10 Minutes (Productivity tips included!)](https://i.ytimg.com/vi/UsdedFoTA68/default.jpg)
![UiPath REFramework Beginners Tutorial](https://i.ytimg.com/vi/sJD1k5p5Edc/default.jpg)
![The Many Uses of AutoHotKey](https://i.ytimg.com/vi/n_9-QkD-zJ4/default.jpg)
![Using AutoHotKey For Windows Macro Recording](https://i.ytimg.com/vi/10KM27uzoIE/default.jpg)
![Use WASD while editing text! | AutoHotkey Stories](https://i.ytimg.com/vi/z29KF4aauww/default.jpg)
![AutoHotkey - Beginners tutorial (All the basic functions)](https://i.ytimg.com/vi/lxLNtBYjkjU/default.jpg)
![Copying data from Excel with AutoHotkey](https://i.ytimg.com/vi/eHn4CsCUixc/default.jpg)