0
I’m trying to feed a table with 3 information inserted from the execution of a Userform and, at the end, make a direct hyperlink in the cell with the information inserted. The information is as follows::
- Path to a particular folder (textbox)
- The first 2 characters of a selected option (combobox)
- Current date and time
What I did basically to get this was the following:
Cells(LRow, 1).Formula = "=Hyperlink(""H:\backup\test\"")"
Cells(LRow, 2).Value = UCase(Left(Me.Cbx_State.Value, 2))
Cells(LRow, 3).Value = Format(Now, "_yyyymmdd_hhmmss")
Cells(LRow, 1) = Cells(LRow, 1) & Cells(LRow, 2) & Cells(LRow, 3)
When I only run the first line, the link works perfectly for the folder, however, when rotating the fourth (where I concatenate the two other information, the link stops working.
I was hoping to get a link like this, for example:
H:\backup\test\CT-20170322_162111
I don’t understand the problem. Any idea?