Jump to content

Need help converting Readcell to RangeRead (excel)


Go to solution Solved by Danp2,

Recommended Posts

Hello,
Novice user here.  I am trying to update a script that used the old _ExcelReadcell to the current _Excel_RangeRead.  The challenge I'm having is all of the examples for ReadRange are using hard callouts like A1 whereas I need to use variable callouts since the script is looping through the rows and columns reading one cell of data in excel and plopping it into a data field in another software.

So the old line was:
$DocNumber = _ExcelReadcell($oExcel, $eRow, $eColm)

I've been trying different variations of the following:
$DocNumber = _Excel_RangeRead($oExcel, Default, "$eRow, $eColm", 1)
which is not creating an error, but is returning 0

Thank you,

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...