当前位置:网站首页>How to put long links into Excel
How to put long links into Excel
2022-07-24 23:26:00 【comli_ cn】
1. problem
excel In the use of hyperlink There is a limit on the length of the link , Longer than 256 The link of cannot be used hyperlink 了 .
2. Use xlsxwriter Bag to solve
(1) Create a new one excel surface
workbook = xlsxwriter.Workbook("my_excel.xlsx")
(2) Add one sheet
worksheet = workbook.add_worksheet("sheet1")
(3) use worksheet.write_url() Write an overly long link to excel
worksheet.write_url(row_num, column_num, my_url, string = "the_link") # write in url
3. Possible problems
If there is "#“ In the wps Links inside may be truncated , At this time, you need to first link the inside ”#“ Replace with ”", In this way wps and excel The inside can be opened .
my_url = my_url.replace("#", "")
worksheet.write_url(row_num, column_num, my_url, string = "the_link") # write in url
4. Hyperlinks
speculation worksheet.write_url Is the use of the excel The hyperlinks inside 

The length limit of hyperlinks has not been found yet , But a link with a length of 500 or 600 is OK .
边栏推荐
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 7
- Vite3.0 has been released, can you still roll it (list of new features)
- 激光雷达障碍物检测与追踪实战——cuda版欧式聚类
- Read and understand the advantages of the LAAS scheme of elephant swap
- P3201 [HNOI2009] 梦幻布丁 启发式合并
- Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK
- Zheng Huijuan: Research on application scenarios and evaluation methods of data assets based on the unified market
- 一文读懂Elephant Swap的LaaS方案的优势之处
- Solve the problem that JSP cannot use session.getattribute()
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 4
猜你喜欢

Notes of Teacher Li Hongyi's 2020 in-depth learning series 5

Value driven provides the core driving force for the transformation of commercial BP - BP realization under business scenarios - Commercial BP sharing

Okaleido tiger NFT即将登录Binance NFT平台,后市持续看好

Paper notes: accurate causal influence on discrete data

MySQL查询慢的一些分析

芯片的功耗

Alibaba cloud SSL certificate

郑慧娟:基于统一大市场的数据资产应用场景与评估方法研究

Network Security Learning (II) IP address

salesforce零基础学习(一百一十六)workflow -> flow浅谈
随机推荐
Understanding complexity and simple sorting operation
Vite3.0 has been released, can you still roll it (list of new features)
Cross entropy loss
QT6 with vs Code: compiling source code and basic configuration
价值驱动为商业BP转型提供核心动力——业务场景下的BP实现-商业BP分享
[brother hero July training] day 20: search Binary Tree
Pointrender parsing
The rule created by outlook mail is invalid. Possible reasons
Qt | 事件系统 QEvent
用VS Code搞Qt6:编译源代码与基本配置
必会面试题:1.浅拷贝和深拷贝_浅拷贝
QT | event system qevent
VGA display based on FPGA
The accuracy of float
芯片的功耗
Network Security Learning (IV) user and group management, NTFS
Let‘s Encrypt
Network Security Learning (V) DHCP
ODBC executes stored procedure to get return value
Old Du servlet JSP