Excel - Copy a formula

Asked By pcorcele on 04-Aug-12 08:19 AM
=HYPERLINK("[hooks.xlsm]Sheet2!a1","CLICK HERE")
I have the above formula in sheet1, c3
I would like to drag it down to a100 so that the next line would read
=HYPERLINK("[hooks.xlsm]Sheet3!a1","CLICK HERE")
and the next line
=HYPERLINK("[hooks.xlsm]Sheet4!a1","CLICK HERE")
all the way to 100
thanks


Bruno Campanini replied to pcorcele on 04-Aug-12 10:47 AM
pcorcele wrote :

Try this, may be it works.

=HYPERLINK("[hooks.xlsm]Sheet"&ROW(A1)&"!a1,CLICK HERE")

Bruno
pcorcele replied to Bruno Campanini on 04-Aug-12 01:30 PM
Thnaks but it does not work
Bruno Campanini replied to pcorcele on 05-Aug-12 01:22 AM
pcorcele expressed precisely :


This one?
================================
Public Sub CopyFormula()
Dim TargetRange As Range i As Long

Set TargetRange = [Sheet1!K1]
For i = 1 To 100
TargetRange(i) = "=HYPERLINK(" & Chr(34) & _
Next

End Sub
================================

Bruno