提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何将网址文本转换为Excel中的可点击超链接?

假设您的工作表中有多个网址,但它们没有链接,现在您需要将所有未链接的网址转换为可点击的超链接,如下图所示。 当然,您可以一个一个地点击它们以使它们可点击,但是如果有很多网址,这将非常耗时。 你怎么能在Excel中自动将多个未链接的URL转换为可点击的超链接?


将纯文本转换为可点击的超链接:

您订购的 Kutools for Excel转换超链接 实用程序可以帮助您快速从超链接中提取实际的url地址,并将多个纯文本转换为超链接。

Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!


箭头蓝色右泡 使用VBA代码将网址文本转换为可点击的超链接


除了使用下面的VBA代码之外,似乎没有其他有效的方法来解决Excel中的这个问题。

1。 选择要转换为可点击超链接的url文本范围。

2。 按住 ALT + F11 键打开 Microsoft Visual Basic for Applications 窗口。

3。 点击 插页 > 模块,并将以下代码粘贴到模块窗口中。

Sub ConvertToHyperlinks()
'Updateby20140318
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Application.ActiveSheet.Hyperlinks.Add Rng, Rng.Value
Next
End Sub

4。 然后按 F5 键运行代码,弹出对话框供您选择范围,然后单击 OK,并且选定的未链接的网址已转换为可点击的超链接。 查看屏幕截图:

 2

一次删除所选范围,工作表或整个工作簿的所有超链接:

您订购的 Kutools for Excel's 删除超链接 功能,您可以根据需要从所选范围,工作表或整个工作簿中删除所有超链接。

doc删除超链接4


箭头蓝色右泡 使用Kutools for Excel将网址文本转换为可点击的超链接

也许,VBA代码对你来说有些困难,在这里,我可以向你介绍一个多功能工具 - Kutools for Excel,其 转换超链接 功能,您可以快速处理以下操作:

  • 从超链接中提取实际地址;
  • 将网址文字转换为可点击的超链接
Kutools for Excel : 与超过300方便的Excel加载项,在60天免费试用没有限制.

如果你已经安装 Kutools for Excel请按照以下步骤进行:

1。 选择要转换为可点击超链接的url文本范围。

2。 点击 Kutools > 链接 > 转换超链接,看截图:

3。 在 转换超链接 对话框中选择 单元格内容替换超链接地址和点击 DOC-button1 按钮 结果范围 指定一个单元格来放置结果。

4。 然后点击 OK,所有选定的纯文本链接都已转换为可点击的超链接。 看截图:

备注:

1。 如果你想把实际地址放在原来的范围内,请检查 转换源范围.

2。 如果超链接与当前文档链接,请检查 超链接是本文档中的一个地方 选项。

点击 转换超链接 了解更多关于这个功能。

立即下载并免费试用Kutools for Excel!


箭头蓝色右泡 演示:使用Kutools for Excel将网址文本转换为可点击的超链接

Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!


相关文章:

如何从Excel中的超链接提取实际的地址?


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Courtney · 1 months ago
    Oh crap.... it broke my Excel. By mistake I selected entire column and it forze for... ages!!
  • To post as a guest, your comment is unpublished.
    Babu · 10 months ago
    hi
    when i click on the hyperlink .. it wont take to me to email page ( as an Outlook or Gmail) Please support
  • To post as a guest, your comment is unpublished.
    Corey · 10 months ago
    I had to switch nearly 55,000 cells from plain text to hyperlinks. This helped me cut the time down from "the rest of my natural life" to five minutes. Thank you!
  • To post as a guest, your comment is unpublished.
    Zakir · 11 months ago
    This is very helpful...Thanks
  • To post as a guest, your comment is unpublished.
    Shawn · 1 years ago
    This is Great! Worked like a charm
  • To post as a guest, your comment is unpublished.
    Shanda · 3 years ago
    Man! This is so awesome, I've spent so long trying to find an easy way and this took seconds! Works great!!!
  • To post as a guest, your comment is unpublished.
    Swaroop! · 3 years ago
    Thanks a lot my friend! it worked! :lol:
  • To post as a guest, your comment is unpublished.
    jibbius · 3 years ago
    The code almost works, but author has left a small copy-paste error.

    You need to remove "" from the first line, and "" from the last line, and then it will work.

    Cheers.
  • To post as a guest, your comment is unpublished.
    MartyM · 4 years ago
    I wanted to do something slightly different - create words with hyperlinks to add into a website via a WYSIWYG (rather than HTML coding the whole thing)

    If you have good typing hands try:

    Command "C" the hyperlink > click to cell you want to link...
    Command "K" & paste Command "V" with text you want to hyperlink

    Repeat x n
  • To post as a guest, your comment is unpublished.
    Ruben · 4 years ago
    I do not know if it's just me or if perhaps everyone else experiencing problems with your website.
    It appears as if some of the text within your posts are running
    off the screen. Can someone else please comment and let me know
    if this is happening to them as well? This could be a issue with my web browser
    because I've had this happen previously. Kudos

    Feel free to visit my web site [url=http://culinotests.fr/news/vider-un-poulet-pour-la-premiere-fois]http://culinotests.fr/news/vider-un-poulet-pour-la-premiere-fois[/url]
  • To post as a guest, your comment is unpublished.
    Waqar · 4 years ago
    great job my friend!!!!!!! too good
  • To post as a guest, your comment is unpublished.
    Nathaniel · 5 years ago
    Why did you change it? This was a simple easy routine that worked every time. Now it is much larger and crashes Excel.
  • To post as a guest, your comment is unpublished.
    hind · 5 years ago
    you are great!!!
    Thanks a lot thank you thank you thank you!!!!! :lol: :D :-)