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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
.
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,215,350
Messages
6,124,430
Members
449,158
Latest member
burk0007

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