How can I get around Excel's URL Limitation?

Deadly 提交于 2020-08-23 03:31:30

问题


I'm using the excellent xlsxwriter to build spreadsheets with Python. I've become aware of the issue where you can only write 40k or so URLS to a sheet before you start getting warned and the functionality is gated.

Is there a way to write the urls as strings in such a way that the Excel application will not interpret the url as a string on open (and therefore allow me to add unlimited urls)? I get that those URLs won't be clickable, but it's better than nothing in this case for me.


回答1:


Excel's limit is around 65k urls per worksheet. XlsxWriter warns if you exceed that.

Is there a way to write the urls as strings in such a way that the Excel application will not interpret the url as a string on open (and therefore allow me to add unlimited urls)

XlsxWriter has a constructor option to turn off conversion of strings to urls:

workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False})


来源:https://stackoverflow.com/questions/35729737/how-can-i-get-around-excels-url-limitation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!