Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default I'll try one last time. :(

Hi,

this fixes it so that the text box is deleted whenever the selection
change occurs, not just another selection in column 5...


Public ShpMsg As Shape
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
ShpMsg.Delete
If ActiveCell.Column = 5 And ActiveCell.Value < "" Then
Set ShpMsg = Me.Shapes.AddTextbox(msoTextOrientationHorizontal, _
ActiveCell.Left, ActiveCell.Top, 0, 0)
ShpMsg.TextFrame.Characters.Text = ActiveCell.Value
ShpMsg.TextFrame.AutoSize = True
End If
End Sub

Ken Johnson

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
synchronizing timestamp feature with time on video software. 999 Excel Discussion (Misc queries) 4 July 30th 06 10:49 PM
formula to determine time range overlap? William DeLeo Excel Discussion (Misc queries) 0 June 6th 06 08:26 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
Entering Times Denise Excel Discussion (Misc queries) 9 November 15th 05 04:57 PM


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