Jump to content

Recommended Posts

Posted

Man, I must say that I don't think it should match exactly the title. Why not using just StringInStr, more flexibility in my opinion. Oh, by the way, it returns __Workbooks, so to get the sheet use $oSheet = $oExcel.Application.ActiveSheet.

Posted (edited)

#include <Excel.au3>
$title=WinGetTitle("Microsoft Excel","")

if not $title=0 then
$oExcel = _ExcelBookAttach($title, "Title")

Else
    $oExcel=_excelbooknew()
EndIf

$d=0
Do
$d+=1
$read=  _excelreadcell($oExcel,$d,1)
until $read=""
ConsoleWrite("end of row is "&$d&@lf)

:D

used this to find the last entry in colomn 1..... TY Authenticity

Edited by Aceguy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...