I have a migraine the only thing that works is excedrin migraine. Is it ok to take excedrin migraine then have a few glasses of wine, im having a bbq.

Tough question. Since alcohol and likely wine in particular tend to trigger migraine, you are asking whether taking excedrin migraine prophylactically would prevent a migraine. Theoretically it is possible but there is no clear answer until you have tried it. Limiting your wine intake to less than 2 glasses along with food intake will enhance the chance of success.