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 Overflow
🌐
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()
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 350
write_url produces broken hyperlink · Issue #350 · jmcnamara/XlsxWriter
April 27, 2016 - Hi, I am using XlsxWriter to create an report file with links to problems in other excel documents. Everything worked great, until i realized that some hyperlinks didn't work when there was a s...
Author: jmcnamara
🌐
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.
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 727
Support for URLs in rich text · Issue #727 · jmcnamara/XlsxWriter
June 20, 2020 - import xlsxwriter book = xlsxwriter.Workbook('hello.xlsx') sheet = book.add_worksheet() hyperlink = book.add_format({'hyperlink': True}) bold = book.add_format({'bold': True}) sheet.write_rich_string('A1', 'This is ', bold, 'bold', hyperlink, 'https://github.com' ) workbook.close()
Author: jmcnamara
🌐
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.
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 511
Issue with hyperlinking for cells containing multiple URLs · Issue #511 · jmcnamara/XlsxWriter
April 20, 2018 - Upon clicking Yes, it successfully recovers the workbook and, as said above, the whole cell is hyperlinked instead of having each URL hyperlinked individually. I'm using Python 2.7.10, XlsxWriter 0.9.3 (due to the requirements of pyexcel-xlsxw) and Excel 16.12 on macOS.
Author: jmcnamara
🌐
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
Find elsewhere
🌐
XlsxWriter
xlsxwriter.readthedocs.io › worksheet.html
The Worksheet Class — XlsxWriter
Versions of Excel prior to Excel 2015 limited hyperlink links and anchor/locations to 255 characters each. Versions after that support urls up to 2079 characters. XlsxWriter versions >= 1.2.3 support this longer limit by default.
🌐
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.
🌐
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
🌐
Python Forum
python-forum.io › thread-20041.html
How to add hyperlink to existing Excel file
Hi, I have below the main table (both table are (csv): grp1 grp2 grp Date grp1_1 grp1_2 Date grp2_1 grp2_2 grp2_3 AHJ 20191/7/1 1/3 2/5 20191/7/1 2/5 3/3 2/6 AKL ...
🌐
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.
🌐
Readthedocs
xlsxwriterlua.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — xlsxwriter.lua Documentation
-- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" local workbook = Workbook:new("hyperlink.xlsx") local worksheet = workbook:add_worksheet("Hyperlinks") -- Format the first column worksheet:set_column('A:A', 30) -- Add the standard url link format.
🌐
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}).
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 455
Feature request: change color of urls after they have been clicked · Issue #455 · jmcnamara/XlsxWriter
August 17, 2017 - Hello Is it possible to add a font color option for urls/links such that the color changes after the url has been clicked? For example, from blue to purple, as usual with links. Openpyxl supports t...
Author: jmcnamara
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 306
Feature Request: Add support to set the "Hyperlink base" document property · Issue #306 · jmcnamara/XlsxWriter
October 3, 2015 - As seen here: https://xlsxwriter.readthedocs.org/_images/doc_properties.png There is a "Hyperlink base" property which can be set but is not currently supported by Xlsxwriter.
Author: jmcnamara
🌐
TutorialsPoint
tutorialspoint.com › python_xlsxwriter › python_xlsxwriter_quick_guide.htm
Python XlsxWriter - Quick Guide
XlsxWriter is a Python module for creating spreadsheet files in Excel 2007 (XLSX) format that uses open XML standards. XlsxWriter module has been developed by John McNamara. Its earliest version (0.0.1) was released in 2013.