theprodigy83 Posted April 28, 2017 Share Posted April 28, 2017 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 More sharing options...
Subz Posted April 29, 2017 Share Posted April 29, 2017 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 More sharing options...
theprodigy83 Posted May 2, 2017 Author Share Posted May 2, 2017 This is what I have now $descricao =_Excel_RangeRead($oWorkbook, $oWorkbook.Activesheet, "M" & String($i)) I already tried before (without success) $descricao =_Excel_RangeRead($oWorkbook, $oWorkbook.Activesheet, "M", True & String($i)) Probably I'm doing something wrong here. Link to comment Share on other sites More sharing options...
Subz Posted May 2, 2017 Share Posted May 2, 2017 It should be: $descricao =_Excel_RangeRead($oWorkbook, $oWorkbook.Activesheet, "M" & $i, 1, True) theprodigy83 1 Link to comment Share on other sites More sharing options...
theprodigy83 Posted May 3, 2017 Author Share Posted May 3, 2017 Great! It worked! A big thank you for your help @Subz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now