stirlingmw
Board Regular
- Joined
- Feb 18, 2013
- Messages
- 75
Afternoon all
I have a Userform where I can select a file using FileDialog. When I select the file and press Open the file does not open, but the address of this file is pasted into textURL. When I then press the command button "Add" this line of text is added to a textbox "txtFile" within another Userform "Master". If text is already present in txtFile the new text is added as a Newline the code I am using for this is:
How can this text become a hyperlink as opposed to plain text? the text being added includes all of the elements required in a hyperlink (e.g. H:\Downloads\Quiz.xlsm). each line of text will be a different hyperlink.
Thanks
Steve
I have a Userform where I can select a file using FileDialog. When I select the file and press Open the file does not open, but the address of this file is pasted into textURL. When I then press the command button "Add" this line of text is added to a textbox "txtFile" within another Userform "Master". If text is already present in txtFile the new text is added as a Newline the code I am using for this is:
Code:
With Edit.txtILR
.Value = .Value & vbCrLf & Me.TxtURL.Value
End With
How can this text become a hyperlink as opposed to plain text? the text being added includes all of the elements required in a hyperlink (e.g. H:\Downloads\Quiz.xlsm). each line of text will be a different hyperlink.
Thanks
Steve