tbablue
Active Member
- Joined
- Apr 29, 2007
- Messages
- 488
- Office Version
- 365
- Platform
- Windows
Hi.
I need help controlling Application.MoveAfterReturn.
I want to set it to False ONLY when a cell in C4:C13 is the activecell.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.MoveAfterReturn = False
If Target.Count > 1 Then Exit Sub
If Intersect(Me.Range("c4:c13"), Target) Is Nothing Then Exit Sub
Application.MoveAfterReturn = False
If InRange(ActiveCell, Range("c4:c13")) Then
Application.MoveAfterReturn = False
ActiveCell.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"", ScreenTip:="CLICK TO PROGRESS"
MsgBox "Hyperlink Available!"
Else
' code to handle that the active cell is not within the right range
MsgBox "Active Cell NOT In Range!"
End If
Application.MoveAfterReturn = True
End Sub
Any help welcomed.
I need help controlling Application.MoveAfterReturn.
I want to set it to False ONLY when a cell in C4:C13 is the activecell.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.MoveAfterReturn = False
If Target.Count > 1 Then Exit Sub
If Intersect(Me.Range("c4:c13"), Target) Is Nothing Then Exit Sub
Application.MoveAfterReturn = False
If InRange(ActiveCell, Range("c4:c13")) Then
Application.MoveAfterReturn = False
ActiveCell.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"", ScreenTip:="CLICK TO PROGRESS"
MsgBox "Hyperlink Available!"
Else
' code to handle that the active cell is not within the right range
MsgBox "Active Cell NOT In Range!"
End If
Application.MoveAfterReturn = True
End Sub
Any help welcomed.