VBA中Hyperlinks集合的使用方法

VBA中Hyperlinks集合的使用方法:可用 Hyperlinks 属性返回 Hyperlinks 集合。下例检查第一张工作表上包含单词“Microsoft”的链接的超链接。 Hyperlinks collection in VBA, use: Available Hyperlinks property to return the Hyperlinks collection. The following example checks the first worksheet that contains the hyperlink of the word “Microsoft” link.For Each h in Worksheets(1).Hyperlinks If Instr(h.Name, “Microsoft”) <> 0 Then h.FollowNext可用 Add 方法创建一个超链接,并将其添加到 Hyperlinks 集合中。下例为单元格 E5 新建一个超链接。Use the Add method to create a hyperlink, and add it to the Hyperlinks collection. The following example is a cell E5 to create a new hyperlink.With Worksheets(1) .Hyperlinks.Add .Range(“E5”), “http://example.microsoft.com”End With
醒来第一眼看见的是他,然后倒头继续睡。这就是我想要的幸福。

VBA中Hyperlinks集合的使用方法

相关文章:

你感兴趣的文章:

标签云: