Quote Originally Posted by Argh two glass eyes
Thank you very much works perfectly
Just in case someone presses Cancel.

VB Code:
  1. Private Sub Command1_Click()
  2.  
  3. Dim frm As Form
  4.  
  5. On Error GoTo ErrorRoutine
  6.  
  7. CommonDialog1.CancelError = True
  8. CommonDialog1.ShowColor
  9. For Each frm In Forms
  10.     frm.BackColor = CommonDialog1.Color
  11. Next
  12.  
  13. Exit Sub
  14.  
  15. ErrorRoutine:
  16.  
  17.     If Err.Number = 32755 Then
  18.         MsgBox "You pressed Cancel rather than selecting a color"
  19.     End If
  20.  
  21. End Sub