Excel VBA Help

Don
Joined
5 Oct 2005
Posts
11,156
Location
Liverpool
Hey Guys,

Head is mashed at the moment and the misses need some VBA for a worksheet... so I have this:


For Each c In Worksheets("Master").Range("A2:A100").Cells

I want to create a hyperlink for each sheet that's being dynamically created by me so the name of the sheet is c.Name

Any help constructing the VBA for the hyperlink would be appreciated :)

Cheers,

Stelly
 
Don
OP
Joined
5 Oct 2005
Posts
11,156
Location
Liverpool
Hey guys,

This seems to add the hyperlink but not to the correct sheet! :(

c.Hyperlinks.Add Anchor:=Range(c.Address), Address:="'" & c.Text & "'!A1", TextToDisplay:=c.Text

Stelly
 
Back
Top Bottom