当前位置:网站首页>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 .
边栏推荐
- JUC concurrent programming - Advanced 05 - lock free of shared model (CAS | atomic integer | atomic reference | atomic array | field updater | atomic accumulator | unsafe class)
- Introduction to HLS programming
- 基于FPGA的VGA显示
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 2
- Convert a string to an integer and don't double it
- WPF opens external programs and activates them when needed
- Understanding complexity and simple sorting operation
- Collection of common online testing tools
- Upgrade the jdbc driver to version 8.0.28 and connect to the pit record of MySQL
- 国信证券手机开户安全吗
猜你喜欢

JDBC 驱动升级到 Version 8.0.28 连接 MySQL 的踩坑记录

ShardingSphere-数据库分库分表简介

First engineering practice, or first engineering thought—— An undergraduate's perception from learning oi to learning development

The specified data is grouped and the number of repetitions is obtained in Oracle

Architecture design of multi live shopping mall

Bug summary

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

JS ------ Chapter 3 JS cycle

Old Du servlet JSP

IP first experiment hdcl encapsulates PPP, chap, mGRE
随机推荐
Which securities account is the best and safest for beginners
ASP. Net core 6.0 data validation based on model validation
With screen and nohup running, there is no need to worry about deep learning code anymore | exiting the terminal will not affect the operation of server program code
Okaleido tiger NFT即将登录Binance NFT平台,后市持续看好
RichTextBox operation
Learn AI through detectron2
ASP.NET Core 6.0 基于模型验证的数据验证
About constant modifier const
How to speculate on the Internet? Is it safe to speculate on mobile phones
Background image and QR code synthesis
burp从溯源到反制思路
Mandatory interview questions: 1. shallow copy and deep copy_ Shallow copy
First engineering practice, or first engineering thought—— An undergraduate's perception from learning oi to learning development
Let‘s Encrypt
Js----- Chapter 4 array
JS ------ Chapter 5 functions and events
Mandatory interview questions: 1. shallow copy and deep copy_ Deep copy
Salesforce zero foundation learning (116) workflow - & gt; On flow
中金证券新客理财产品收益可以达到百分之六?开户怎么开?
Lidar obstacle detection and tracking: CUDA European clustering