Alert Message needed for Excel Table/Range

yuvastanza

New Member
Joined
Mar 1, 2011
Messages
19
Hi Leads,

Good day!

I need a VBA help to have a alert message in a Table / range of cells ([Range("C7:E18").value]) if the value of the cell is more than 0. once the alert message get clicked the cursor should jump to the appropriate cell in the second table which is in the same sheet. For example if cell C7 has value 1 (which is greater than 0), the message should popup and has to jump to the Cell C27 to fill the reasons, if it is for C8 then it should be C28 like that.

Table 1
Column CColumn DColumn E
101

<tbody>
</tbody>


Column CColumn DColumn E
ReasonsReasons

<tbody>
</tbody>
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Here is a VBA code to do as you wish.

Code:
Sub Yuva()
    Dim c As Range, rng As Range
    Set rng = Range("C7:E18")
    For Each c In rng
        If c > 0 Then
            c.Offset(20, 0).Select
        End If
    Next c
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,344
Members
448,956
Latest member
Adamsxl

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