Hi Guys,
New to Excel, VBA and userforms so please bare with me!
I currently have my userform setup whereby the user selects "Upload Feedback" which prompts the user to browse for a file and inputes the Path/String into a text box underneath (image below). My issue is that when the userform is submitted the path/string is displayed as text and not as a hyperlink. I am wanting to userform to convert said path into a hyperlink and display the name as "Feedback" instead of the path name if possible.
I have pasted the code im using below but please be mindful that all of the code has been aquired from youtube etc and tweaked to work on my userform.. its not pretty but it works and all suggestions are welcome!
New to Excel, VBA and userforms so please bare with me!
I currently have my userform setup whereby the user selects "Upload Feedback" which prompts the user to browse for a file and inputes the Path/String into a text box underneath (image below). My issue is that when the userform is submitted the path/string is displayed as text and not as a hyperlink. I am wanting to userform to convert said path into a hyperlink and display the name as "Feedback" instead of the path name if possible.
I have pasted the code im using below but please be mindful that all of the code has been aquired from youtube etc and tweaked to work on my userform.. its not pretty but it works and all suggestions are welcome!
VBA Code:
Private Sub SubmitButton_Click()
Dim tbl As ListObject
Dim ws As Worksheet
Dim lrow As Range
Dim lrow2 As Long
Set tbl = Sheets("Task Check").ListObjects("Table1")
If tbl.ListRows.Count > 0 Then
Set lrow = tbl.ListRows(tbl.ListRows.Count).Range
For col = 1 To lrow.Columns.Count
If Trim(CStr(lrow.Cells(1, col).Value)) <> "" Then
tbl.ListRows.Add
Exit For
End If
Next
End If
lrow2 = tbl.ListRows.Count
tbl.DataBodyRange(lrow2, 1).Value = DateBox.Value
tbl.DataBodyRange(lrow2, 2).Value = CheckerBox.Value
tbl.DataBodyRange(lrow2, 3).Value = CaseworkerBox.Value
tbl.DataBodyRange(lrow2, 4).Value = TeamBox.Value
tbl.DataBodyRange(lrow2, 5).Value = OutcomeBox.Value
tbl.DataBodyRange(lrow2, 6).Value = TaskIDBox.Value
tbl.DataBodyRange(lrow2, 7).Value = FeedbackBox.Value
tbl.DataBodyRange(lrow2, 8).Value = CommentsBox.Value
Unload Me
Task_UF.Show
End Sub