Originally Posted by
DT909
I need a code for that please.
Realise that this site is not a free code-writing service.
Originally Posted by
DT909
adding of a button to create a link ? in column 12 of each row ?
Does it need a button?:
ActiveSheet.Hyperlinks.Add Anchor:=Cells(????????, 12), Address:="", TextToDisplay:="Link"
If so a shape (textbox in this case) (a button can't easily have an editable hyperlink):
Set TbRng = Cells(?????????, 12)
'Set tbx= ActiveSheet.Shapes.AddTextbox(1, TbRng.Left + 1, TbRng.Top + 1, TbRng.Width - 2, TbRng.Height - 2) 'a slightly smaller textbox.
Set tbx = ActiveSheet.Shapes.AddTextbox(1, TbRng.Left, TbRng.Top, TbRng.Width, TbRng.Height)
With tbx.TextFrame2
.VerticalAnchor = msoAnchorMiddle
.HorizontalAnchor = msoAnchorCenter
.MarginLeft = 0
.MarginRight = 0
.MarginTop = 0
.MarginBottom = 0
.TextRange.Text = "Link"
End With
ActiveSheet.Hyperlinks.Add tbx, ""
Originally Posted by
DT909
And sorry, I can't share the file as there are links inside to my company's files...
Then remove them!