dpalomino1009
New Member
- Joined
- Mar 3, 2019
- Messages
- 20
Hello,
I can't figure out why Application.ScreenUpdating is not working, the screen flickers every time (after entering data on G2). I tried to figure it out from other posts, but it seems different things work for different people so I'm showing the code I'm struggling with bellow. Please let me know where I went wrong.
Thank you.
___
I can't figure out why Application.ScreenUpdating is not working, the screen flickers every time (after entering data on G2). I tried to figure it out from other posts, but it seems different things work for different people so I'm showing the code I'm struggling with bellow. Please let me know where I went wrong.
Thank you.
___
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Application.ScreenUpdating = False
If Not Intersect(Target, Range("G2")) Is Nothing Then
Application.Goto (ActiveWorkbook.Sheets("Welcome Email & New Hire Info").Range("G2"))
Application.CutCopyMode = False
Selection.copy
Application.Goto (ActiveWorkbook.Sheets("User iMac & PC").Range("F192"))
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.Goto (ActiveWorkbook.Sheets("User iMac & PC").Range("N2"))
Application.CutCopyMode = False
Selection.copy
Application.Goto (ActiveWorkbook.Sheets("User iMac & PC").Range("D192"))
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.Goto (ActiveWorkbook.Sheets("Welcome Email & New Hire Info").Range("H2"))
Application.CutCopyMode = False
Selection.copy
Application.Goto (ActiveWorkbook.Sheets("User iMac & PC").Range("E192"))
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.Goto (ActiveWorkbook.Sheets("Welcome Email & New Hire Info").Range("G3"))
Application.CutCopyMode = False
End If
Application.ScreenUpdating = True
On Error Resume Next
Application.ScreenUpdating = False
If Not Intersect(Target, Range("F2")) Is Nothing Then
Application.Goto (ActiveWorkbook.Sheets("Welcome Email & New Hire Info").Range("A19"))
Application.CutCopyMode = False
Selection.copy
Application.Goto (ActiveWorkbook.Sheets("Welcome Email & New Hire Info").Range("A300").End(xlUp).Offset(1, 0).Select)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Application.ScreenUpdating = True
End Sub
Last edited by a moderator: