利用VBA批量添加邮件链接
时间:2022-11-24 18:41:51
如果Excel表格中的某个区域有许多文本格式的邮件地址需要添加链接,用手工的方式非常繁琐。可以使用下面的VBA代码来快速添加链接,假设该区域为F2:F18。
Sub ConvertToEmail()
Dim convertRng As Range
Set convertRng = Range("F2:F18")
Dim rng As Range
For Each rng In convertRng
If rng.Value <> "" Then
ActiveSheet.Hyperlinks.Add rng, "mailto:" & rng.Value
End If
Next rng
End Sub
标签:利用,区域,添加,链接,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何将excel2016单元格中的数据进行分列处理
2023-12-05 15:07:02
![](https://img.aspxhome.com/file/2023/6/a140316_0s.jpg)
如何制作U盘的win10随身系统?win10系统安装到U盘的方法详解
2023-08-05 05:27:54
![](https://img.aspxhome.com/file/2023/5/46735_0s.jpg)
exel单击单元格时运行一个指定的宏
2023-10-20 13:29:07
excel表中如何将有相同字眼的列排序在一起
2022-04-29 07:48:38
![](https://img.aspxhome.com/file/2023/8/36688_0s.jpg)
Office2003中找不到SKU011.CAB问题的解决方法
2023-08-19 17:04:14
word 编号后空格太大的解决方法
2023-06-24 03:22:27
![](https://img.aspxhome.com/file/2023/8/33268_0s.jpg)
Excel饼图中如何显示百分比又显示数量的方法
2022-08-08 21:21:19
![](https://img.aspxhome.com/file/2023/5/a142795_0s.jpg)
6个公式 让你在Excel中随意查询
2022-07-28 13:52:24
![](https://img.aspxhome.com/file/2023/5/41325_0s.jpg)
word2007绘制表格头斜线的几种方法介绍
2022-08-05 05:27:16
![](https://img.aspxhome.com/file/2023/4/25574_0s.jpg)
Word中如何修改厘米标尺
2023-12-14 01:11:24
![](https://img.aspxhome.com/file/2023/0/20050_0s.jpg)
如何将excel表格改成虚线
2022-08-16 21:00:09
![](https://img.aspxhome.com/file/2023/3/38843_0s.jpg)
怎么在Word2010中绘制表格
2023-12-02 06:22:58
![](https://img.aspxhome.com/file/2023/7/19587_0s.jpg)
SUMPRODUCT函数注意事项
2023-03-07 16:29:14
![](https://img.aspxhome.com/file/2023/9/a142279_0s.jpg)
Excel 2019如何复制分级显示数据
2023-10-01 22:11:07
![](https://img.aspxhome.com/file/2023/6/a140856_0s.jpg)
WPS怎么播放幻灯片
2023-12-05 14:27:09
![](https://img.aspxhome.com/file/2023/2/a164052_0s.jpg)
Excel2003如何标记重复值的技巧
2022-08-14 18:38:29
在Excel中怎么固定标题栏?Excel中固定标题栏的方法
2023-08-20 03:58:23
![](https://img.aspxhome.com/file/2023/0/a153570_0s.jpg)
word2013设置页码的方法
2022-07-24 14:38:28
Excel中DEC2OCT函数的语法和用法
2022-06-04 06:59:53
![](https://img.aspxhome.com/file/2023/6/a155826_0s.png)
excel实战技巧:模拟占位输出
2023-07-19 02:21:10
![](https://img.aspxhome.com/file/2023/4/a142564_0s.jpg)