message box code

  1. S

    Message Box When Closing Excel

    Hi all, Thank you in advance for your help. I'm okay with VBA but I always get a bit confused with these message boxes when they link. So what I want to do is to have a message box that pops up when this Excel file is attempted to close that says "Have you uploaded the data?" "Yes" or "No"...
  2. D

    Warning Message Needed for User Who "X" Out of Certain Form

    I am attempting to have a pop message display when users of a certain form "X" out of the form. Below is what I came up with but it does not seem to be working: Private Sub IntroUpdate_BeforeClose(Cancel As Boolean) Call MsgBox("User closed the program before any formulas were updated."...
  3. J

    Message Box when click a button - help please

    Good afternoon, I was wondering how I would go about adding a "warning" or "message" box when somebody clicks my command button within my workbook please? I basically want to give intructions in the box once the button is clicked then possibly a yes/no button for would you like to continue? If...
  4. N

    Need a one time message box at open

    I have a message box that pops up everytime when the workbook is opened. I was wondering if there is a way to allow the user to stop this box from popping up everytime without deleting the code. Thanks, N
  5. B

    Vba: adding a message box

    I am showing below a small sample of my code. I am wanting a yes no message box to popup before the rest of the code runs. If yes then code runs if no it cancels out the macro at this time. Im not sure how to add it. Thanks
  6. A

    VBA Code to End a Macro

    Hello. I'm trying to add a Message Box (with Yes and No buttons) to the beginning of a Macro that will ask the user to confirm if they want to continue. The code below works but I wanted to see if there is more efficiant code or "best practices" I should be considering. Thank you Sub...
  7. S

    Access 2007 Display a Search Result Message after input in text box

    I hope that I do not make this sound confusing. What I have created currently works but I would like to improve it. I have created 2 tables Table 1 and a Table 2, In Table 1 is only one field "Last Name" and is a text field. Table 2 is a populated database with information and one of the...
  8. S

    Displaying A Menu Of Worksheets To Print - msg box on the fly

    Using Excel 2003, I have a nice bit of code/ macro that will display a menu (msg box) of worksheets to print as long your worksheets are visible (not hidden).....it will offer a checkbox to print. However, I would like to avoid offfering the choice to print one of the tabs e.g. "Menu" tab...
  9. J

    message box questions

    Is there a way to program a message box to become a differant color? Is thera a way to program a message box to show up a a differant location other then the middle of the screen?
  10. caritx

    Message Box help vba

    I have this code which works great but in the text I also want it to display the line count for column A and the sum of AZ Sub test() ' ' Batch test ' Dim addbatch As String addbatch = InputBox("Batch") Range("BC1").Select ActiveCell.Offset(1, 0).FormulaR1C1 =...
  11. W

    vbOKCancel use question

    Hi All, I am using the following code to alert a user that data entry which is required to generate the filename hasn't been made, and when OK is clicked a dialog box appears showing the filename which defaults to '.xls. Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As...
  12. KP_SoCal

    VBA to Create Message Box when Space Bar is Pressed

    For colums A,B,C,G,H on my worksheet, I would like to create an error message when users press the [SPACE BAR] when inside any one of the cells for these columns. The message would prompt them that entries using the [SPACE BAR] are not allowed. I took a stab at this by writing the following...
  13. H

    Prompt message when workbook is opened on particular date

    Hi, i would like to have message prompted to reming user doing backup whenever the workbook is opened from 28 til the last day of the month (30th or 31st depending on which month). wha's the correct code for "date"? Private Sub Workbook_open() If Date>=28 Then Msg = "Remember to do monthly...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top