admin管理员组文章数量:1434914
I'm trying to setup a command using Xlwings within a Python script to set a specific cell within an Excel worksheet to an Excel Data type (e.g., Stocks, Currencies). I've found the VBA code that sets to these "newer" Excel Data types that return values from Microsoft's online services. However I'm not having any luck in getting this code to work.
Any feedback would be appreciated.
Using: MacOS: Sequoia v15.1 Excel: Excel for Mac 2021
Sample code:
wb = xw.Book(file)
sheet = wb.sheets('Stock_DataTable')
sheet.Range("B19").api.ConvertToLinkedDataType ServiceID:=268435456, LanguageCulture:= "en-US"
Expected result: format the cell as the specified data type and return the correct information from the web-service
Observed result: the call simply fails with a message saying that this is not a supported function.
本文标签:
版权声明:本文标题:python - Xlwings Converting a Cell to an Excel DataType (e.g., Stocks, Currencies) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745631761a2667317.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论