@awel20
Sweet, thanks!
I had like 14 excel processes running in the background, burning my CPU. hahaha
I tried this. And it works great. Except that I'm not getting the first values of the sheet. Kind of odd. Just thought I'd bring it up in case you might know what's causing it. Cause I might just work around the issue by adding extra stuff that might not be necessary. Basically, I did a quick test sheet. It seems that the script is always eating the first (and sometimes second)value
Code: Select all
::#cam1::
xl := ComObjGet("C:\Users\Enrique\Desktop\Codes\Excel COM\TEST - 00000 - Comobject Test Sheet.xlsx")
sleep, 1000
Send, % x1.Worksheets("Sheet1").Range("B3").value
send, {enter}
Send, % x1.Worksheets("Sheet1").Range("B4").value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B5").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B6").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B12").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B14").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B16").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B33").Value
send, {enter}
Send, % xl.Worksheets("Sheet1").Range("B34").Value
send, {enter}
xl := "" ; Clear global com vars when you are done with them.
return
This is the output I'll get.
Code: Select all
NA99
55555
pass12345
pass99999
pass12345
359225055900000
8914800000017000000
I'm missing Cell B3 & B4. If I change them values they will still not show up, if I put those cells at the bottom, they will show up. Any ideas?