如何使用vba创建动态链接

时间:2016-11-19 14:50:00

标签: excel-vba vba excel

在vba中真的写不了那么多,到目前为止只使用了录音和后续编辑 - 请温柔一点:)

我试图获得一个动态的'文件A和名称我想在单元格中指定的文件之间的链接。

到目前为止,我创建了一个文件链接,并尝试根据单元格中给出的值创建一个可以修改它的宏(即链接中指定的源文件)。惨了......任何建议?

Sub Macro1()

    Worksheets("aaa").Activate

    Dim FTW As String

    FTW = Cells(1, "A").Value

    ActiveWorkbook.ChangeLink Name:= _
        "FTW", NewName:= _
        "FTW", Type:=xlExcelLinks

End Sub

1 个答案:

答案 0 :(得分:0)

  <table class="table">
          <thead>
            <tr>
              <th>ID</th>
              <th>Name</th>
              <th>Deposit</th>
              <th>Credit Card</th>
            </tr>
          </thead>
          <tbody>
            <my-Directive></my-Directive>
          </tbody>
    </table>


 <!-- here is html in the directive -->

<tr>
  <td>001</td>
  <td>Danilo</td>
  <td>7163547265</td>
  <td>Visa</td>
</tr>
相关问题