Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jez Jez is offline
external usenet poster
 
Posts: 38
Default MsgBox using cell references

I have a column that is looking for Overdue dates, I want to have a MsgBox
that shows the detail in Column A and Column B how is it possible to do?

I will then put this into the Workbook_Open so that it will pop up when
report opens.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default MsgBox using cell references

I would think that can be tedious to look at if there are many. Why not just
conditionally format the dates

http://www.xldynamic.com/source/xld.CF.html#due

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jez" wrote in message
...
I have a column that is looking for Overdue dates, I want to have a MsgBox
that shows the detail in Column A and Column B how is it possible to do?

I will then put this into the Workbook_Open so that it will pop up when
report opens.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
Jez Jez is offline
external usenet poster
 
Posts: 38
Default MsgBox using cell references

Thanks Bob,

I thought of that but due to the importance of this info, I cant have users
looking for this type of data, I need it to show them when they open the
report.

So I need to show on a MsgBox Column A and Colum B if it is in either

Due in 2 Weeks
Due in 3 Weeks
Due This Month

Those are in Column B

"Bob Phillips" wrote:

I would think that can be tedious to look at if there are many. Why not just
conditionally format the dates

http://www.xldynamic.com/source/xld.CF.html#due

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jez" wrote in message
...
I have a column that is looking for Overdue dates, I want to have a MsgBox
that shows the detail in Column A and Column B how is it possible to do?

I will then put this into the Workbook_Open so that it will pop up when
report opens.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default MsgBox using cell references

Hi Jez

One way to do it would be

Option Explicit
Dim LastRow As Integer
Dim MyCell, MyRng As Range

Private Sub Workbook_Open()

With Sheets(1)

LastRow = [A65535].End(xlUp).Row

Set MyRng = Range("A1:A" & LastRow)

For Each MyCell In MyRng

If MyCell.Value < Date Then

MsgBox (MyCell.Value & vbNewLine & MyCell.Offset(0, 1).Value)

End If

Next MyCell

End With

End Sub


Hope this helps

S


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
msgBox after update cell Claudio Silva Excel Programming 0 January 18th 07 12:41 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM
MsgBox containing text from cell Nick Smith[_2_] Excel Programming 5 May 10th 06 04:46 PM
send value to a cell instead on MsgBox morry[_18_] Excel Programming 2 June 10th 04 07:59 PM


All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"