Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 21:04
- Joined
- Sep 6, 2004
- Messages
- 897
Hi,
As per belwo code, I am typing something in cell A4 of excel sheet and B4 is filling with current date with today's date. As long as you go down inuting values in A column cells, B column cells will be filled with date automatcally.
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
What I need now is I want to change the value in A4 whenever required and the value of A4 need to copied to cell B4.
When next time I change the value of same A4 cell, I want to check if B4 has any value then it should take next cell in same column and fill the value and go on...
I am stucked at the remark code lines. Can some one see please.
The code is working fine with dates in next below cell but we need to input value in A column parallal
Is there anyone can extend help please...
Or after changing value in A4 a button can be set somewhere and after pressing this btn, the value of A4 shall be copied to B4 and if B4 is already contain value then B5.....B6......and so on.
Can someone help me out please.....
As per belwo code, I am typing something in cell A4 of excel sheet and B4 is filling with current date with today's date. As long as you go down inuting values in A column cells, B column cells will be filled with date automatcally.
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Row < 3 Then Exit Sub
If Not Intersect(Target, Columns("A:A")) Is Nothing Then
Application.EnableEvents = False
If Len(Trim(Target.Row)) > 0 Then
'========
'If (Target.Offset(0, 1).Value) > 0 Then
Target.Offset(0, 1).Value = Date
'Else
'Target.Offset(1, 1).Value = Date
'End If
Else
Target.Offset(0, 1).Value = vbNullString
'=======
End If
Application.EnableEvents = True
End If
End Sub
When next time I change the value of same A4 cell, I want to check if B4 has any value then it should take next cell in same column and fill the value and go on...
I am stucked at the remark code lines. Can some one see please.
The code is working fine with dates in next below cell but we need to input value in A column parallal
Is there anyone can extend help please...
Or after changing value in A4 a button can be set somewhere and after pressing this btn, the value of A4 shall be copied to B4 and if B4 is already contain value then B5.....B6......and so on.
Can someone help me out please.....
Attachments
Last edited by a moderator: