Help! Need to get value from Excel Cells that contain specific value and store it to array then put it in certain cells.

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Ram
Posts: 16
Joined: 13 Jan 2021, 10:56

Help! Need to get value from Excel Cells that contain specific value and store it to array then put it in certain cells.

Post by Ram » 16 Jan 2021, 01:27

Hey, i wonderin if i could get value from excel cells that contain specific characters / or value, then paste / send that value to certain cells in Excel.

CAn anyone help me ? Thankyou very much.
TheUnknown138
Posts: 5
Joined: 16 Sep 2019, 08:44

Re: Help! Need to get value from Excel Cells that contain specific value and store it to array then put it in certain ce

Post by TheUnknown138 » 16 Jan 2021, 15:20

This is how you can open a workbook and copy a value onto another sheet, workbook, etc.

Code: Select all

xl := ComObjCreate("Excel.Application")
xl.Visible := true
xl.Workbooks.Open(Workbook_Name)
xl.Sheets(1).Range("A1").Value := xl.Sheets(2).Range("A1").Value
xl.DisplayAlerts := 0
xl.ActiveWorkbook.Save
xl.Quit()
xl := ""
Post Reply

Return to “Ask for Help (v2)”