You could use the write_string() method instead of write_column(). The write_column() method calls write() which calls write_url() by default. That would require you to roll your own loop.
Or set the workbook constructor property to tell the module to ignore urls when calling write():
workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False})
Answer from jmcnamara on Stack OverflowGitHub
github.com › jmcnamara › XlsxWriter › issues › 266
Issues hyperlinking · Issue #266 · jmcnamara/XlsxWriter
June 12, 2015 - My solution was disable the hyperlinking using: workbook = xlsxwriter.Workbook(output, {'strings_to_urls': False})
Author: jmcnamara
XlsxWriter
xlsxwriter.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — XlsxWriter
red_format = workbook.add_format( { "font_color": "red", "bold": 1, "underline": 1, "font_size": 12, } ) # Write some hyperlinks worksheet.write_url("A1", "http://www.python.org/") # Implicit format. worksheet.write_url("A3", "http://www.python.org/", string="Python Home") worksheet.write_url("A5", "http://www.python.org/", tip="Click here") worksheet.write_url("A7", "http://www.python.org/", red_format) worksheet.write_url("A9", "mailto:jmcnamara@cpan.org", string="Mail me") # Write a URL that isn't a hyperlink worksheet.write_string("A11", "http://www.python.org/") workbook.close()
Gemfury
gemfury.com › 3stack-software › 3stack-xlsxwriter
xlsxwriter/worksheet.py · 3stack-software / 3stack-xlsxwriter v0.8.4.post1 - python package | Gemfury
if re.match("internal:", url): url = url.replace('internal:', '') string = string.replace('internal:', '') link_type = 2 # Remove the URI scheme from external links and change the directory # separator from Unix to Dos. if re.match("external:", url): url = url.replace('external:', '') url = url.replace('/', '\\') string = string.replace('external:', '') string = string.replace('/', '\\') # Strip the mailto header. string = string.replace('mailto:', '') # Check that row and col are valid and store max and min values if self._check_dimensions(row, col): return -1 # Check that the string is < 32767 chars str_error = 0 if len(string) > self.xls_strmax: warn("Ignoring URL since it exceeds Excel's string limit of " "32767 characters") return -2 # Copy string for use in hyperlink elements.
TutorialsPoint
tutorialspoint.com › python_xlsxwriter › python_xlsxwriter_hyperlinks.htm
Python XlsxWriter - Hyperlinks
A hyperlink is a string, which when clicked, takes the user to some other location, such as a URL, another worksheet in the same workbook or another workbook on the computer. Worksheet class provides write_url() method for the purpose.
XlsxWriter
xlsxwriter.readthedocs.io › worksheet.html
The Worksheet Class — XlsxWriter
XlsxWriter supports Excels worksheet limits of 1,048,576 rows by 16,384 columns. ... Write generic data to a worksheet cell. ... *args – The additional args that are passed to the sub methods such as number, string and cell_format. ... Other values from the called write methods. Excel makes a distinction between data types such as strings, numbers, blanks, formulas and hyperlinks...
GitHub
github.com › jmcnamara › XlsxWriter › issues › 489
write_formula and write_url problems · Issue #489 · jmcnamara/XlsxWriter
February 4, 2018 - I use XlsxWriter 1.0.2 and python 2.7 I have two problems: I have tried to use write_formula(row_num, col_num ,'=HYPERLINK("some URL","Some link text")', link_format). But as result I have digits (zero as example) in the result file cell. This is really strange because if i press "Enter" in this cell then I can see "Some link text" in this cell and I can click on it and go to the url.
Author: jmcnamara
Libxlsxwriter
libxlsxwriter.github.io › hyperlinks_8c-example.html
libxlsxwriter: hyperlinks.c
* Example of writing urls/hyperlinks with the libxlsxwriter library. * * Copyright 2014-2026, John McNamara, jmcnamara@cpan.org · * */ #include "xlsxwriter.h" int main() { /* Create a new workbook. */ lxw_workbook *workbook = workbook_new("hyperlinks.xlsx"); /* Add a worksheet.
Top answer 1 of 3
9
You can do this with the XlsxWriter Worksheet write_url() method using the internal: URI. See the XlsxWriter docs on write_url().
2 of 3
2
To put a "Friendly Name" in the hyperlink use the string argument of write_url() method. For example, I did the following after setting the variable sheet_name, which in this case is both the name of the sheet to link to and the friendly name:
write_url(row, col, f"internal:'{sheet_name}'!A1", string=sheet_name)
YouTube
youtube.com › python in office
Use Python Xlsxwriter To Create Excel Formulas And Links (Part 2) - YouTube
In Part 2 of the Xlsxwriter tutorial, we'll create Excel named range, links, and formulas. For the text version of the tutorial, check out this link: https:/...
Published: September 24, 2021
Views: 988
Readthedocs
xlsxwriterlua.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — xlsxwriter.lua Documentation
-- Write some hyperlinks worksheet:write_url('A1', 'http://www.lua.org/', url_format) worksheet:write_url('A3', 'http://www.lua.org/', url_format, alt_string) worksheet:write_url('A5', 'http://www.lua.org/', url_format, alt_string, tip_string) worksheet:write_url('A7', 'http://www.lua.org/', red_format) worksheet:write_url('A9', 'mailto:jmcnamaracpan.org', url_format, 'Mail me') -- Write a URL that isn't a hyperlink worksheet:write_string('A11', 'http://www.lua.org/') workbook:close()
SUSE Package Hub
packagehub.suse.com › packages › python-XlsxWriter › 1_2_7-bp152_1_8
python-XlsxWriter-1.2.7-bp152.1.8
Note, this is a backward incompatible change. Issue `#504 <https://github.com/jmcnamara/XlsxWriter/issues/504>`_. * Fixed missing plotarea formatting in pie/doughnut charts. - Update to version 1.0.2 * Fix for cases where the hyperlink style added in the previous release didn't work.
Stack Overflow
stackoverflow.com › questions › 75893105 › removed-records-hyperlinks-when-opening-spreadsheet
export to excel - 'Removed Records: Hyperlinks...' when opening spreadsheet - Stack Overflow
I am the author of XlsxWriter and I'd be interested in seeing the file that is causing this issue if you could raise a github issue or if the data is sensitive contact me at the email address in the docs. In the meantime you can avoid creating unintentional hyperlinks by using the strings_to_urls Constructor parameter: workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False}).
GeeksforGeeks
geeksforgeeks.org › python › saving-long-urls-with-pandas-and-xlsxwriter
Saving Long URLs with Pandas and XlsxWriter - GeeksforGeeks
July 23, 2025 - This article dives into handling URLs in Excel using Python, specifically with the `pandas` library and the `XlsxWriter` engine. By the end, we'll learn how to efficiently save and format long URLs in Excel files and ensure they remain user-friendly. Excel is a powerful tool for managing and analyzing data, but working with URLs can be tricky. Long URLs often break when displayed in cells, causing formatting issues or making the spreadsheet difficult to read. Moreover, Excel might not automatically treat text as hyperlinks, requiring extra steps to keep your URLs clickable.