Jump to content

Not copying more texts with more then 200 characters in Excel


Recommended Posts

Hello,

I have a script that pulls the information from an .xlsx file and put it on a website page. Everything works well with exception of the descriptions part. When copying descriptions with more then 200 characters the bot just leave an empty field. When the description is short, it copies normally.

I'm using Windows 10 and Excel 2013. Any idea so I can fix this?

Link to comment
Share on other sites

Can only make an assumption here, I added your comment to a range of cells in Excel.

After _Excel_RangeRead, I added MsgBox(0, "", @error), this returned error 5 - Error occurred when reading data using the transpose method.

So just changed the last parameter $bForceFunc to True (see example below) and it was able to read the contents into the array.

$aWorkBook = _Excel_RangeRead($oWorkbook, Default, Default, 1, True)

 

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...