typewriterguy
New Member
- Joined
- Oct 29, 2008
- Messages
- 24
Would someone be able to provide VBA guidance/correction for this, for Excel 2003?
I would like a message box to pop-up when a user enters > 1000 characters into any Excel cell. The message box should only have an ok button (no cancel or retry) and also include the custom text that is shown below.
"Your description in <FIELDNAME>exceeds Excel's character limit. Please either shorten your description or insert a new row."
I tried the below and was getting a run-time error. Thanks.
---
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("D10").Length > "1000" Then
MsgBox "Your description in <FIELDNAME>exceeds Excel's character limit. Please either shorten your description or insert a new row"
End If
End Sub
---
I would like a message box to pop-up when a user enters > 1000 characters into any Excel cell. The message box should only have an ok button (no cancel or retry) and also include the custom text that is shown below.
"Your description in <FIELDNAME>exceeds Excel's character limit. Please either shorten your description or insert a new row."
I tried the below and was getting a run-time error. Thanks.
---
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("D10").Length > "1000" Then
MsgBox "Your description in <FIELDNAME>exceeds Excel's character limit. Please either shorten your description or insert a new row"
End If
End Sub
---