alexsheehan
Member
Ahh... A slight problem...
Linked to this post and my earlier post (selecting a range via a hyperlink and then printing selection) - the problem I now face is that my original "Print" code and my "Edit" code listed now no longer function accordingly, my code so far is thus;-
[pre]
[/pre]
Linked to this post and my earlier post (selecting a range via a hyperlink and then printing selection) - the problem I now face is that my original "Print" code and my "Edit" code listed now no longer function accordingly, my code so far is thus;-
[pre]
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Dim n1 As Integer
Dim n2 As Integer
Dim d As Integer
If Target.Count > 1 Then Exit Sub
n1 = Target.Row - 23
n2 = Target.Row - 25
d = 34
If (n1 - d * Int(n1 / d) <> 0 And n2 - d * Int(n2 / d) <> 0) Or Intersect(Target, Range("D:I")) Is Nothing Then Exit Sub
If Target = "ý" Then
Target = "=Hyperlink("""",""þ"")"
Target.Font.Name = "Wingdings"
Target.Font.Underline = False
Target.Font.Size = 22
ActiveCell.Offset(-1, 0).Select
Else
Target = "ý"
Target = "=Hyperlink("""",""ý"")"
Target.Font.Name = "Wingdings"
Target.Font.Underline = False
Target.Font.Size = 22
ActiveCell.Offset(-1, 0).Select
End If