If EE = "Y" Then 'Edit existing Ebay item
'or Sold item record
Worksheets("Ebay Inventory").Activate
'Turn off Controls not needed
frmSalesEbay.CommandButton6.Visible = False
frmSalesEbay.CommandButton7.Visible = False
frmSalesEbay.CommandButton9.Visible = False
frmSalesEbay.CommandButton12.Visible = False
frmSalesEbay.CommandButton13.Visible = False
frmSalesEbay.CommandButton14.Visible = False
frmSalesEbay.CommandButton16.Visible = False
'Turn on Controls needed
frmSalesEbay.Frame1.Visible = True
frmSalesEbay.Frame3.Visible = True
frmSalesEbay.Frame4.Visible = True
frmSalesEbay.CommandButton11.Visible = True
frmSalesEbay.CommandButton10.Visible = True
frmSalesEbay.CommandButton15.Visible = True
'Turn off textboxes, labels and checkboxes
For x = 1 To 31
If x = 1 Or x = 3 Or x > 4 And x < 28 Or x = 27 Then
With frmSalesEbay.Controls("TextBox" & x)
.Visible = False
.Enabled = False
.TabStop = False
End With
With frmSalesEbay.Controls("Label" & x)
.Visible = False
.Enabled = False
End With
End If
With frmSalesEbay.Controls("CheckBox4")
.Visible = False
.Enabled = False
.TabStop = False
End With
With frmSalesEbay.Controls("CheckBox5")
.Visible = False
.Enabled = False
.TabStop = False
End With
Next x
'Turn on needed text boxes
For x = 1 To 30
If x = 1 Or x = 3 Or x > 4 And x < 20 Or x = 26 Or x = 30 Then
With frmSalesEbay.Controls("TextBox" & x)
.Visible = True
.Enabled = True
.TabStop = True
If x = 1 Then
.TabIndex = 4
ElseIf x = 3 Then
.TabIndex = 5
ElseIf x = 5 Then
.TabIndex = 3
etc...