小编vin*_*nit的帖子

无效的过程调用或带有超链接的参数

我试图自动添加超链接并在每次添加新超链接时递增。

但是,我进入了超链接的 vba 脚本:

“无效的过程调用或参数错误”

我在从“linkedSheet.Hyperlinks”到“targetSheet.Name”的代码末尾收到错误

任何帮助都会很棒!

Dim targetSheet As Worksheet
Dim targetRange As Range
Dim linkedSheet As Worksheet
Dim linkRange As Range
Dim TargetRow As Long

'set variable to the sheet the hyperlink will link to
Set targetSheet = ThisWorkbook.Sheets(ActiveSheet.Name)

' specify the range on the summary sheet to link to
Set targetRange = targetSheet.Range("A1:Z100")

' set variable to sheet that will have the hyperlink
Set linkedSheet = ThisWorkbook.Sheets("Management")

For i = 6 To 1006
  Set Value = linkedSheet.Cells.Item(i, …
Run Code Online (Sandbox Code Playgroud)

excel vba hyperlink invalid-argument

5
推荐指数
0
解决办法
1159
查看次数

标签 统计

excel ×1

hyperlink ×1

invalid-argument ×1

vba ×1