Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excel question

  • 02-05-2006 7:11pm
    #1
    Registered Users, Registered Users 2 Posts: 345 ✭✭


    ok so I've created a spiffy excel file which is really neat and easy to use, cells are locked and protected so the user can only type where they are supposed to, etc.

    I would like to add pop-up instructions so that when a user opens the file they get a quick message making sure they know what to do. Anyone know how to add a message which would pop up on opening the file ?

    Thanks


Comments

  • Closed Accounts Posts: 13,126 ✭✭✭✭calex71


    not sure how to do what you are asking but if you right click on a cell you need the user to add data to and select add comment you can add instrustions on how that cell is to be filled in there, when you click on that cell , the comment will pop up telling the user what to do.


  • Registered Users, Registered Users 2 Posts: 345 ✭✭dannyd20


    calex71 wrote:
    not sure how to do what you are asking but if you right click on a cell you need the user to add data to and select add comment you can add instrustions on how that cell is to be filled in there, when you click on that cell , the comment will pop up telling the user what to do.

    Thanks but that isn't really what I want to do. Just a simple pop up message box on opening the file is all I want. I'm sure it's possible.


  • Closed Accounts Posts: 4 alterneight


    Try the following.
    To access the Open event of a workbook:

    1. Right click the small Excel icon next to File on the main toolbar.
    2. Select Workbook from the left dropdown.
    3. You should now see the following code:

    Private Sub Workbook_Open()

    End Sub

    Change this to something like the following:

    Private Sub Workbook_Open()
    MsgBox "Please fill in the cells highlighted pink"
    End Sub

    Close out and save. You can change the text then afterwards to say whatever you want. It could also be worth bearing in mind that it could be useful to use Validation on cells so that users are restricted to entering numbers/text/days of year etc.

    You can select this in Data>Validation so that if a wrong value is entered it will display an error message.

    HTH


  • Closed Accounts Posts: 1,806 ✭✭✭i71jskz5xu42pb


    dannyd20 wrote:
    Thanks but that isn't really what I want to do. Just a simple pop up message box on opening the file is all I want. I'm sure it's possible.

    Tools/Macro/Visual Basic Editor

    Define a sub routine for the Workbook on open event as follows

    Private Sub Workbook_Open()
    MsgBox ("This is not an alert")
    End Sub


  • Registered Users, Registered Users 2 Posts: 345 ✭✭dannyd20


    Thanks alterneight & PaschalNee - thats what I was looking for. I knew it was there somewhere!!


  • Advertisement
Advertisement