Mwssage Box based on cell input

Shamsuddeen

Active Member
Joined
Feb 16, 2002
Messages
292
Hi,

I need to pop up a message box while entering any value in any of the cells from A10 thru A15.

Thanks in advance
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
VBA code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A10:A15")) Is Nothing Then
        MsgBox "The active cell does Intersect A10:A15"
    End If

End Sub
 
Upvote 0
Re: Trigger a Macro based on cell input value

Hi All,

I would like to trigger a macro based on the value entered in any cells in Range("A10:A15").

The macro "Ledger" should run if user enters any numeric value in any cells in Range(A10:A14) and macro "SubLedger" should run if user enters any numeric value in Cell A15.

If any non-numeric value is entered in any of the above cells, a message "Please enter a Numeric Value" should be displayed.

Thanks in advance
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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