PDA

View Full Version : Solved: Prompt to enable macro



Emoncada
05-28-2010, 06:16 AM
I have a UserForm that is needed to prompt on opening the Workbook.

What I would like is when the workbook is open have a prompt asking them to enable macro (Yes Or No) and if Clicked "Yes" Enable Macros and start form

If clicked "No" close the workbook.

Any help would be great.

Thanks

Emoncada
05-28-2010, 06:28 AM
Ok just thought about this and this won't work because you can't have a prompt without macro's enable.

Any other suggestions?

Emoncada
05-28-2010, 06:40 AM
Is it possible once macro's are enabled to start a UserForm?

GTO
05-28-2010, 08:05 AM
Try the Open event in ThisWorkbook:

Private Sub Workbook_Open()
UserForm1.Show vbModal
End Sub


hope that helps,

Mark

Emoncada
05-28-2010, 08:15 AM
Thanks GTO