Mix the sugar, vinegar, celery seed and salt in a large bowl. Add the sliced cucumbers and onions. Place the pickles in a 2-quart jar and store them in the refrigerator. Let set for about 3 days to allow the flavor to set in the pickles. If the sugar isnít completely dissolved, it will continue to dissolve after the pickles are finished and stored in the refrigerator.