Hi Logit
Yes there is room for one.
See below is where I have managed to get to so far.
Progress to date!
Have dealt with “Commets TextBox” remaining hidden until cmdAddCommentsTextBox is clicked, by setting “Comments TextBox” visible properties to “False”
And by assigning this to the call “Add Comments command button”
Excel Formula:
Private Sub cmAddCommentsTextBox_Click()
txtAddCommentsTextBox.Visible = True
txtAddCommentsTextBox.SetFocus
End Sub
In a nut shell, “Comments TextBox” remains hidden until cmdAddCommentsTextBox button is clicked.
So far so good, next step
Now need to take the text value of the “Comments textbox” and add it as a comment into appropriate cell decided by the “UserForm” entry criteria.
This is going to involve a little tweaking of the main “Add Entry” sub.
Key part of which is (bear in mind this IS NOT the whole Sub);
Excel Formula:
If LR1 = LastRow = 0 Then '(this needs to be 0 otherwise this doesn't work)
.Range("N" & LR1 + 1 & ":AJ" & LR1 + 1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
.Range("N" & LR1 + 1 & ":AJ" & LR1 + 1).FillUp
LastRow = LR1 + 1
End If
.Cells(LastRow, "O") = Format(Me.Calendar1.Value, "mmm/dd")
.Cells(LastRow, "P") = Me.txtInvNo
.Cells(LastRow, "Q") = Me.cmbPaymentMethod
.Cells(LastRow, "S") = Me.txtItemValue.Value
Then after
.Cells(LastRow, "S") = Me.txtItemValue.Value
Then this is when/where need to add the "Comments TextBox” value as a “Comment”
In some ways this is a case of reverse engineering, as the cell to place/add the comment is as yet undefined and won’t be until the full data entry is made.
Hope that makes sense?
PS. Sorry forgot to mention "Comment" will be going into .Cells(LastRow, "S")