dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,352
- Office Version
- 365
- 2016
- Platform
- Windows
I have an excel table called css_quote and while reviewing the code, I realised that part of it is wrong.
I have the following code:
Row 11 is the first row of the table with A being the date. This works if there is only 1 row but if there are multiple rows and the date is missing on rows other than the first, it won't pick up that the date is missing on the additional rows. What is the syntax to see if there are any blank cells in row A of the table?
I have the following code:
VBA Code:
Private Sub cmdSendTCTPrint_Click()
Costing.Unprotect password:=ToUnlock
Quoting.Unprotect password:=ToUnlock
If Range("A11").Value = "" Then
MsgBox "Please enter a date for every service"
Exit Sub
End If
Call cmdSend
Quoting.Activate
Call AddReference
Quoting.Protect password:=ToUnlock
Costing.Protect password:=ToUnlock
End Sub
Row 11 is the first row of the table with A being the date. This works if there is only 1 row but if there are multiple rows and the date is missing on rows other than the first, it won't pick up that the date is missing on the additional rows. What is the syntax to see if there are any blank cells in row A of the table?