Sorry guys, this is killing me.
I have been fighting this issue for several weeks, to no avail. I am exporting the results of a query to an excel sheet, with one of the columns being from a field of hyperlinks that link to files on the shared drive.
I CANNOT get the hyperlinks to be assigned. I can change the field name, but not the hyperlink address. Can't figure it out.
1) I have a header row
2) Column 16 is where the hyperlinks are
Here it is:
Thanks
I have been fighting this issue for several weeks, to no avail. I am exporting the results of a query to an excel sheet, with one of the columns being from a field of hyperlinks that link to files on the shared drive.
I CANNOT get the hyperlinks to be assigned. I can change the field name, but not the hyperlink address. Can't figure it out.
1) I have a header row
2) Column 16 is where the hyperlinks are
Here it is:
Code:
Private Sub Hiring_submit_cmd_Click() ' Excel Handling Dim oExcel As Excel.Application Dim oWB As Excel.Workbook Dim oWS As Excel.Worksheet Dim SaveString As String Dim sa Dim HyperCount As Long Dim RanCell As Excel.Range Dim StrTxt As String Dim HyperlinkTxt As String For HyperCount = 2 To oWB.Sheets(1).UsedRange.Rows.Count Set RanCell = oWB.ActiveSheet.Cells(HyperCount, 16) StrTxt = StrConv(RanCell, vbProperCase) If Len(StrTxt) > 1 Then _ call oWB.ActiveSheet.Hyperlinks.Add(anchor:=RanCell, _ Address:=StrTxt, TextToDisplay:=StrTxt) Next HyperCount
Comment