sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
Thanks for helping
Teaching myself VBA and I keep getting a run time stack error on one of my sheets and it always highlights the same line. I can't seem to get a screenshot to post so I've copied and pasted the entire code below for the sheet. Most of the sheet's mathematics are purely formulas in the page- starting to convert stuff to VBA.
Thanks for the Help
Error Line: cells(4, 6) = Format(Now(), "dd-mmm-yyy")
VBA code:
Teaching myself VBA and I keep getting a run time stack error on one of my sheets and it always highlights the same line. I can't seem to get a screenshot to post so I've copied and pasted the entire code below for the sheet. Most of the sheet's mathematics are purely formulas in the page- starting to convert stuff to VBA.
Thanks for the Help
Error Line: cells(4, 6) = Format(Now(), "dd-mmm-yyy")
VBA code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Cells(6, 23) <> "" Then
Cells(4, 6) = Cells(6, 23)
End If
If Cells(8, 18) <> "" And Cells(6, 23) = "" Then
Cells(4, 6) = Format(Now(), "dd-mmm-yy")
Application.EnableEvents = True
End If
End Sub
Last edited by a moderator: