@SorinPostelnicu,ENCODEURL在Excel 2013和2016中可用于Windows。它目前在Excel for Mac或Excel Online中不可用。@richardtallent感谢您提供的信息。这就解释了为什么我没有它:因为
@SorinPostelnicu,ENCODEURL在Excel 2013和2016中可用于Windows。它目前在Excel for Mac或Excel Online中不可用。@richardtallent感谢您提供的信息。这就解释了为什么我没有它:因为,excel,Excel,@SorinPostelnicu,ENCODEURL在Excel 2013和2016中可用于Windows。它目前在Excel for Mac或Excel Online中不可用。@richardtallent感谢您提供的信息。这就解释了为什么我没有它:因为办公室里有Excel 2010。此外,我们项目的目的是将其导出为Excel格式,该格式可与任何操作系统和版本交叉兼容这是一个很好的解决方案。我需要补充的是,ENCODEURL还替换了一些字母,例如Ł,ą,Ó。在这种情况下是多余的。我用嵌套的替代
@SorinPostelnicu,ENCODEURL在Excel 2013和2016中可用于Windows。它目前在Excel for Mac或Excel Online中不可用。@richardtallent感谢您提供的信息。这就解释了为什么我没有它:因为办公室里有Excel 2010。此外,我们项目的目的是将其导出为Excel格式,该格式可与任何操作系统和版本交叉兼容这是一个很好的解决方案。我需要补充的是,ENCODEURL还替换了一些字母,例如Ł,ą,Ó。在这种情况下是多余的。我用嵌套的替代公式覆盖了所有需要的字母的反向转换
=IFERROR(HYPERLINK(VLOOKUP(B12,Table1,13,0),"Click Me"),"")
=IFERROR(HYPERLINK(ENCODEURL(VLOOKUP(B12,Table1,13,0)),"Click Me"),"")
Sub Make_Column_A_into_hyperlinks_hashmarkworkaround()
'Column "A" contains the text of links to some files.
'This subroutine will turn those cells into Excel hyperlinks...
'...and then correct the hyperlinks in case Excel misinterpreted
'a # mark which had originally occurred in the filename.
'Because I'm using selection.End(xlDown).Select to find the complete list,
'this program does not tolerate any blanks in the "A" column list.
'Note that I don't add a hyperlink in Row 1.
Dim A As Object
Dim lngRow As Long
Dim Height As Long
With ActiveSheet
.Cells(1, 1).Select
Selection.End(xlDown).Select
Height = Selection.Row
For lngRow = 2 To Height
.Hyperlinks.Add Anchor:=ActiveSheet.Cells(lngRow, 2), Address:=Chr(34) & _
ActiveSheet.Cells(lngRow, 1).Value & Chr(34), TextToDisplay:="Open", _
ScreenTip:=Chr(34) & ActiveSheet.Cells(lngRow, 1).Value & Chr(34)
Next
For Each A In ActiveSheet.Hyperlinks
If A.ScreenTip <> "" Then
If InStr(1, A.ScreenTip, "#") <> 0 Then
A.Address = Mid(A.ScreenTip, 2, Len(A.ScreenTip) - 2)
End If
End If
Next
End With
End Sub
Dim IE As Object
Dim objCollection As Object
' Create InternetExplorer Object
Set IE = CreateObject("InternetExplorer.Application")
' Send the form data To URL As POST binary request
IE.Navigate "https://YOURURL/niku/nu#action:projmgr.projectDefaultTab&id=5558967"
' Clean up
Set IE = Nothing