Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Tooltip Balloon in worksheet cells - Solution

After much searching I found a solution to a common question. How can I have
a tooltip on my worksheet for each cell. This method uses the Validation
Object. I created the UDF on the worksheet code section using the Selection
Change event. My goal was to click in a cell that had an induction date,
then show a calculated Expected Delivery date using the date under the cursor
plus an standard number of days it would take to travel to a destination.
The number of days, named SS here, was a couple of cells over on the same
worksheet. The EDD function takes into account weekends and holidays to give
me my result. I found that the .delete was necessary to prevent errors when
a cell that was previously used was selected.

So here is my solution...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim InDate As Date, SS As Integer, ExpDel As Date

If Not Intersect(Target, Range("D:D")) Is Nothing Then
InDate = DateValue(Trim(Target.Value))
SS = Target.Offset(0, 3).Value
ExpDel = EDD(InDate, SS)
With Target.Validation
.Add Type:=xlValidateInputOnly, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween
.IgnoreBlank = True
.InputTitle = "Expected Delivery:"
.InputMessage = Format(ExpDel, "mm/dd/yy ddd")
.Delete
End With
End If
End Sub
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
indirect referencing cells with hyperlinks brings text not link- any solution? Ker_01 Excel Worksheet Functions 4 March 7th 08 08:09 PM
Tooltip for macro button in a worksheet Manju Excel Worksheet Functions 0 February 1st 07 06:41 PM
Solution To Auto Height For Merged Cells JoJo Excel Programming 0 August 16th 06 10:58 PM
problems w solution 4 enable AutoFilter for a protected worksheet sharona Excel Programming 1 October 13th 05 04:59 PM
auto color blank cells ,best solution bigdaddy3 Excel Discussion (Misc queries) 1 August 3rd 05 05:21 PM


All times are GMT +1. The time now is 04:03 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"