Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default show msg box if a cell is still blank after a date specified in another cell?

Hi All,
I am a relatively new user to vba but i have been thrust with with the
task of a spreadsheet analysing data from a sales team. Anyway, my
problem is that I have a worksheet where one column is the date that
customer made contact and another where date is entered when sale was
completed. I would like to have a msg box display asking sales rep on
status of sale if the sale completed date is still blank after a st
period of time from the initial contact column date. I am sure this is
possible I just don't know how. Any help would be appreciated.
Regards,
Cameron.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show msg box if a cell is still blank after a date specified in another cell?

Cameron,

Problem here is what will trigger the msgbox, and what happens if many are
due?

an alternative is to use conditional formatting to highlight all of those
overdue.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"****cameron**** " wrote in message
...
Hi All,
I am a relatively new user to vba but i have been thrust with with the
task of a spreadsheet analysing data from a sales team. Anyway, my
problem is that I have a worksheet where one column is the date that
customer made contact and another where date is entered when sale was
completed. I would like to have a msg box display asking sales rep on
status of sale if the sale completed date is still blank after a st
period of time from the initial contact column date. I am sure this is
possible I just don't know how. Any help would be appreciated.
Regards,
Cameron.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default show msg box if a cell is still blank after a date specified in another cell?

Thanks for the reply bob,
I had thought of conditional formatting but there can be upwards of
50-60 entries a day and I feel that the users won't scroll up to look
at the entries as the reminders need to set in 3-4 day intervals. I
should have clarified better. What I hope to do is something similar
to outlooks' reminder function for it's calender where reminder's
cascade according to oldest to earliest. Not sure if this can be done
though...


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show msg box if a cell is still blank after a date specified in another cell?

Cameron,

It can be done, but it needs a trigger event, such as opening the workbook,
and rules on how multiples will be handled (one message at a time or a
composite, as an example).

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"****cameron**** " wrote in message
...
Thanks for the reply bob,
I had thought of conditional formatting but there can be upwards of
50-60 entries a day and I feel that the users won't scroll up to look
at the entries as the reminders need to set in 3-4 day intervals. I
should have clarified better. What I hope to do is something similar
to outlooks' reminder function for it's calender where reminder's
cascade according to oldest to earliest. Not sure if this can be done
though...


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default show msg box if a cell is still blank after a date specified in another cell?

thanks again Bob,
Yeah I want to have them trigger when the workbook opens and have eac
case have a reminder open in order of oldest tp latest. I am startin
to think these guys aren't paying me enough...

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show msg box if a cell is still blank after a date specified in another cell?

Cameron,

Here's one way to do it
#Option Explicit

Private Sub Workbook_Open()
Const nAgedDays As Long = 30
Dim cLastrow As Long
Dim nTopPos As Long
Dim iWarnings As Long
Dim i As Long
Dim PrintDlg As DialogSheet
Dim CurrentSheet As Worksheet
Dim cb As CheckBox

Application.ScreenUpdating = False

' Check for protected workbook
If ActiveWorkbook.ProtectStructure Then
MsgBox "Workbook is protected.", vbCritical
Exit Sub
End If

' Add a temporary dialog sheet
Set PrintDlg = ActiveWorkbook.DialogSheets.Add


With Worksheets("Sheet1")
cLastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
' Add the checkboxes
nTopPos = 40
For i = 1 To cLastrow
If .Cells(i, "A") + nAgedDays < Date And .Cells(i, "B") = ""
Then
iWarnings = iWarnings + 1
PrintDlg.CheckBoxes.Add 78, nTopPos, 150, 16.5
PrintDlg.CheckBoxes(iWarnings).Text = _
"Row " & i & " - " & Format(.Cells(i, "A").Value, "dd
mmm yyyy")
nTopPos = nTopPos + 13
End If
Next i

' Move the OK and Cancel buttons
PrintDlg.Buttons.Left = 240

' Set dialog height, width, and caption
With PrintDlg.DialogFrame
.Height = Application.Max _
(68, PrintDlg.DialogFrame.Top + nTopPos - 34)
.Width = 230
.Caption = "Select workbooks to process"
End With

' Change tab order of OK and Cancel buttons
' so the 1st option button will have the focus
PrintDlg.Buttons("Button 2").BringToFront
PrintDlg.Buttons("Button 3").BringToFront

.Activate

' Display the dialog box
Application.ScreenUpdating = True
If PrintDlg.Show Then
For Each cb In PrintDlg.CheckBoxes
If cb.Value = xlOn Then
MsgBox Workbooks(cb.Caption).Name & " selected"
End If
Next cb
Else
MsgBox "Nothing selected"
End If

' Delete temporary dialog sheet (without a warning)
Application.DisplayAlerts = False
PrintDlg.Delete

' Reactivate original sheet

End With

End Sub




--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"****cameron**** " wrote in message
...
thanks again Bob,
Yeah I want to have them trigger when the workbook opens and have each
case have a reminder open in order of oldest tp latest. I am starting
to think these guys aren't paying me enough....


---
Message posted from http://www.ExcelForum.com/



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default show msg box if a cell is still blank after a date specified in another cell?

thanks alot bob you rock. I will give this a go. I appreciate your
interest in my little quandrey...If you ever want to know amazing cost
effective ways to collect social and market research data, look me up.
cheers again


---
Message posted from http://www.ExcelForum.com/

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
Show or blank out a cell dependant on an selection in another cell Larsb001 Excel Discussion (Misc queries) 0 July 10th 08 02:55 PM
Force date cell to show [blank] if end of month lisa110rry Excel Discussion (Misc queries) 2 January 6th 07 01:33 PM
Using Date & Time Custom Cell - Need to show blank! JDB Excel Discussion (Misc queries) 3 July 12th 06 01:34 PM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Discussion (Misc queries) 1 January 4th 05 08:01 PM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Worksheet Functions 1 January 4th 05 08:01 PM


All times are GMT +1. The time now is 09:20 PM.

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

About Us

"It's about Microsoft Excel"