VB Question - Message Box

lfeikema

New Member
Joined
Aug 23, 2018
Messages
1
HELP PLEASE. I don't think like a programmer, hence my question. I have an excel spreadsheet and I need to add a pop message based on the value of cell (for multiple cells). I know this is easy for most. I'd appreciate all the help I can get.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
.
Code:
Option Explicit


Sub mymsgbox()
    If Range("A1").Value = "Yes" Or Range("A1").Value = "yes" Then
        MsgBox "This is your msgbox.", vbInformation, "Hey"
    End If
End Sub
 
Upvote 0
HELP PLEASE. I don't think like a programmer, hence my question. I have an excel spreadsheet and I need to add a pop message based on the value of cell (for multiple cells). I know this is easy for most. I'd appreciate all the help I can get.

May I suggest:
People here will have a better solution for you if you explain better what you need.
when, where and how do you want to pop a message etc.. in detail if possible.
a clearer view enhances a panorama..
thank you
 
Upvote 0
OR ALSO....

Code:
Option Compare Text
Sub mymsgbox()
    If Range("A1").Value = "Yes" Then MsgBox "This is your msgbox.", vbInformation, "Hey"
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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