【问题标题】:Excel vba declaration within a hrefhref 中的 Excel vba 声明
【发布时间】:2019-03-03 14:46:39
【问题描述】:

我正在尝试在 href 中添加声明,但无法正常工作。

Dim hyp as string
Hyp = activeworkbook.fullname

"<a href= hyp >Link to file</a>"

提前致谢, 西蒙。

【问题讨论】:

    标签: excel vba href declaration


    【解决方案1】:

    试试这个:

    Sub generateHTML()
    
        Dim hyp As String
        Dim html As String
    
        hyp = ActiveWorkbook.FullName
    
        html = "<a href= " & hyp & " >Link to file</a>"
    
        Debug.Print html
    
    End Sub
    

    【讨论】:

    • "链接到文件" 是我正在寻找的代码。感谢 Ricardo doe jou 的努力。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-02-27
    • 2020-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-21
    相关资源
    最近更新 更多