r1998
Board Regular
- Joined
- Sep 9, 2018
- Messages
- 106
Dear friends and respected seniors,
in excel in sheet1, whenever the value in cell F2 changes, it will store the new value in F14 if its blank, then another value in F15 if its blank and then another value in F16 if its blank...
I am using this vba code
This works perfectly fine if i am manually changing the value with keyboard in cell F2.....
But when i use the RTD function in cell F2, the value in F2 cell changes after every 2-3 seconds but values in f14,f15 and f16 dont show up
i have no clue what i am doing wrong
Can anyone please kindly guide me n point out my mistake
Awaiting your replies.
Thank you.
in excel in sheet1, whenever the value in cell F2 changes, it will store the new value in F14 if its blank, then another value in F15 if its blank and then another value in F16 if its blank...
I am using this vba code
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("f2")) Is Nothing Then
If IsEmpty(Range("f14")) Then
Range("f14") = Target.Value
ElseIf IsEmpty(Range("f15")) Then
Range("f15") = Target.Value
ElseIf IsEmpty(Range("f16")) Then
Range("f16") = Target.Value
End If
End If
End Sub
But when i use the RTD function in cell F2, the value in F2 cell changes after every 2-3 seconds but values in f14,f15 and f16 dont show up
i have no clue what i am doing wrong
Can anyone please kindly guide me n point out my mistake
Awaiting your replies.
Thank you.
Last edited: