Results 1 to 3 of 3

Thread: [RESOLVED] MSG on Workbook Open event EXCEL VBA

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Montreal, Canada
    Posts
    152

    Resolved [RESOLVED] MSG on Workbook Open event EXCEL VBA

    I Got message displayed to the user every time the workbook is open.
    So I putted it in the Workbook Open sub in the ThisWorkbook.

    VB Code:
    1. Private Sub Workbook_Open()
    2. Msgbox "To fully automate this workbook, automatic calculation must be ON"
    3. End Sub


    Everything works fine.

    Now want I want to do, is to put a checkbox witch the user can check to not display this message anymore.

    Is it possible?? How??

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: MSG on Workbook Open event EXCEL VBA

    Bill
    You will need to build a Userform if you want to include a checkbox control.
    I would suggest that you store the value of the checkbox in a user-defined name within the workbook. Then when the book is opened, you can evaluate that name to see if you need to display the form.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    Re: MSG on Workbook Open event EXCEL VBA

    You could just turn on automatic calculation instead:
    VB Code:
    1. Private Sub Workbook_Open()
    2.  
    3.     Application.Calculation = xlCalculationAutomatic
    4.  
    5. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width