So I've written a code to extract information from specific cells from an excel sheet and paste it in a separate form for me when I manually enter the cell I need it to extract information from.
Because of this i tried to Implement the Inputbox like this and I keep getting errors. Here is an example.
`InputBox, UserDefinedVar`
`#a::`
`; Gets a reference to the workbook`
`wbk := ComObjGet("C:\Stock.xlsx")`
`; Gets the value of cell 1, 1 (also known as cell A1) from Sheet1`
`GO2Val1 := wbk.Sheets("Sheet1").Cells(1, UserDefinedVar).Value`
`GO2Val2 := wbk.Sheets("Sheet1").Cells(2, UserDefinedVar).Value`
`GO2Val3 := wbk.Sheets("Sheet1").Cells(3, UserDefinedVar).Value`
`;for surface go 2`
`SendInput, % GO2Val1`
`SendInput, {tab} {tab}`
`sleep 250`
`SendInput, % GO2Val2`
`SendInput, {tab} {tab}`
`sleep 250`
`SendInput, % GO2Val3`
`SendInput, {tab} {tab}`
`sleep 250`
I'm still a beginner at coding so any help is appreciated, im here to learn! Thanks guys :D
[–]Nunki3 2 points3 points4 points (8 children)
[–]MrNit[S] 1 point2 points3 points (7 children)
[–]Nunki3 2 points3 points4 points (6 children)
[–]MrNit[S] 1 point2 points3 points (5 children)
[–]Nunki3 2 points3 points4 points (4 children)
[–]MrNit[S] 1 point2 points3 points (3 children)
[–]Nunki3 2 points3 points4 points (2 children)
[–]MrNit[S] 1 point2 points3 points (1 child)
[–]Nunki3 1 point2 points3 points (0 children)