The six individuals who will be editing the Excel workbook on a shared drive will have to try later if they find that one of them has the file open.
For the question about entering data from a form for one of the columns, I have decided to use labels and text boxes on the form to list product codes and allow only numeric values in the text boxes. I had asked if this could be done with a list box or combo box. I also learned that there is a doubleclick event for a worksheet, so I will be using that to open the form rather than a command button or a control key sequence. If the current cell already has product codes and volumes, these volumes will be displayed next to the corresponding labeled product code on the form. The form has buttons for each item to clear the volume, and a button to clear all volumes. When the form is completed, those products with formatted volumes will written to the cell in wrapped text format, for example: ABC 1,000 DEF 250.
HTML Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'open the data entry form if active cell is in a data row (there must be a customer name in column B) and the correct column has been doubleclicked,
'otherwise exit
...
End Sub
Below is sample code used for each text box on the form, which will block any character being entered into the text box other than the characters 0 1 2 3 4 5 6 7 8 9.
HTML Code:
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii < 48 Or KeyAscii > 57 Then
'exit because non-numeric key was pressed
KeyAscii = 0
Cancel = True
Exit Sub
End If
End Sub
Unless anyone has any suggestions or corrections, this data entry question can be considered resolved.
Thanks.
Jerry