I have an odd issue where the underlying VBA in my "WorkSheet" Code does not retain the value of a "Copy" after pasting to a cell.
Subsequently - I am unable to utilize the qat "UNDO" shared control as the copy value always reverts to Application.CutCopyMode = False immediately after pasting - thus rendering Qat "Undo" virtually useless (also removes the ability to past to additonal cells after the initial paste)
My attempt to remedy so far consists of adding "Application.CutCopyMode = xlCopy" to my preprocessing in the "WorkSheet"
This does result in the selected copy cell showing the "marching ant border" on the copied cell (which it did not do prior to Application.CutCopyMode = xlCopy command) but still does not result in allowing multiple paste functionality or QAT "Undo" functionality
Hoping that someone has run into this issue before and can point me in the right direction as I seem to be totally clueless ATM - Thanks in advance
The vba worksheet code in question is as follows:
Subsequently - I am unable to utilize the qat "UNDO" shared control as the copy value always reverts to Application.CutCopyMode = False immediately after pasting - thus rendering Qat "Undo" virtually useless (also removes the ability to past to additonal cells after the initial paste)
My attempt to remedy so far consists of adding "Application.CutCopyMode = xlCopy" to my preprocessing in the "WorkSheet"
This does result in the selected copy cell showing the "marching ant border" on the copied cell (which it did not do prior to Application.CutCopyMode = xlCopy command) but still does not result in allowing multiple paste functionality or QAT "Undo" functionality
Hoping that someone has run into this issue before and can point me in the right direction as I seem to be totally clueless ATM - Thanks in advance
The vba worksheet code in question is as follows:
Code:
Application.CutCopyMode = xlCopy
'------------------------------------------------------------
'Column "E" Processing
'------------------------------------------------------------
Application.EnableEvents = True
Set Changed = Intersect(Target, Range("A:A, C:D, G:H"))
If Not Changed Is Nothing Then
Application.EnableEvents = False
For Each c In Changed
If LCase(Range("E" & c.Row)) = "need" Then
c.ClearContents
With Range("A" & c.Row)
.Value = Range(.Validation.Formula1)(1).Value
End With
End If
Next c
Application.EnableEvents = True
Application.CutCopyMode = xlCopy
End If
'---------------------------------------------------------------
Application.EnableEvents = True
Set Changed = Intersect(Target, Columns("E"))
If Not Changed Is Nothing Then
Application.EnableEvents = False
For Each c In Changed
c.Value = UCase(c.Value)
If LCase(c.Value) = "need" Then
Intersect(c.EntireRow, Range("A:A, C:D, G:H")).ClearContents
With Range("A" & c.Row)
.Value = Range(.Validation.Formula1)(1).Value
End With
End If
Next c
Application.EnableEvents = True
Application.CutCopyMode = xlCopy
End If
'------------------------------------------------------------