Mesage box works, I also need the jobs name that's in another cell

0 Agios

Well-known Member
Joined
Feb 22, 2004
Messages
570
Office Version
  1. 365
this what i am trying to do. Mesage box works, I also need the jobs name that's in another cell


Private Sub CommandButton46_Click()


Dim cell As Range
For Each cell In Range("V7:V1539")
If cell.Value > Date Then
MsgBox "Reminder Date Is " & cell.Value & " For job " & cell.Value.Offset(RowOffset:=0, ColumnOffset:=0)
End If
Next




End Sub
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Fluff
Range ("V7:V1539") has the date value and range ("E7:E1539") has the jobs name. The code searches and gives me the correct date in the Message box. I would like to have the message box showing the date and jobs name
 
Upvote 0
In that case try
VBA Code:
MsgBox "Reminder Date Is " & cell.Value & " For job " & cell.Offset( , -17).Value
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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