close

I have an Excel database which has a hyperlink to a related form for each row
of data.
Each link is to a unique file.
Right now the hyperlink is in column J and the file name is in column K.
So the hyperlink column reads =hyperlink(K1,quot;File infoquot;) and so on.
It works nicely but I'm using two columns for a one column job.

I would like to combine the two columns into one, if possible. So that the
hyperlink would include the actual file path and name and not just the column
reference.

I have tried using a replace command and a concatenate command to try to
combine the two columns into one but neither works.

Any ideas?

Hi LDBlanes-

Have filename in one column and in the column next to that put in the row of
final hyperlink. Concatenate filename and row into text below for each row.

ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:=quot;ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=quot;filenamequot;, _
TextToDisplay:=quot;filenamequot;

Range(quot;ColumnRowquot;).Select

Copy the concatenated text results to word, add a paragraph/carriage return
to quot;TextToDisplay:=quot;filenamequot;. Then copy it all back to an Excel macro and
run it.

Hope it makes sense.

PB

Range(quot;C19quot;).Selectquot;LDBlanesquot; wrote:

gt; I have an Excel database which has a hyperlink to a related form for each row
gt; of data.
gt; Each link is to a unique file.
gt; Right now the hyperlink is in column J and the file name is in column K.
gt; So the hyperlink column reads =hyperlink(K1,quot;File infoquot;) and so on.
gt; It works nicely but I'm using two columns for a one column job.
gt;
gt; I would like to combine the two columns into one, if possible. So that the
gt; hyperlink would include the actual file path and name and not just the column
gt; reference.
gt;
gt; I have tried using a replace command and a concatenate command to try to
gt; combine the two columns into one but neither works.
gt;
gt; Any ideas?

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()