Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto-Insert & Delete Comments

Hi guys,

How could the sub below (which works for a single cell D8)
be extended to work correspondingly across a range of data,
say, to track E6:AE729 in Sheet1 and insert comment boxes
accordingly in Sheet2 ?

Also how could the inserted comment boxes be removed
if corresponding cells in Sheet1 were cleared / made blank later ?

Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)

Set Alert = Sheets("Sheet1").Range("D8")
If Application.WorksheetFunction.IsNumber(Alert) = False _
Then Exit Sub
If Alert 0 Then
Sheets("Sheet2").Select
With Range("D8")
.ClearComments
.AddComment
.Comment.Visible = False
.Comment.Text Text:="Quantity: " & Alert
End With
End If

End Sub

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----


  #2   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto-Insert & Delete Comments

Apologies .. scratch this post ..
think Dave P. just dropped by in the other post in .misc

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----


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
Macro auto insert/delete Eric Excel Discussion (Misc queries) 3 June 12th 07 09:09 PM
Delete added comments Doman Excel Discussion (Misc queries) 3 July 18th 06 12:29 PM
Macro - Delete Comments - What if there's none? Danny Excel Worksheet Functions 1 December 14th 05 10:56 PM
Comments will not delete from Worksheet grockle Excel Discussion (Misc queries) 3 September 6th 05 01:12 AM
how to insert row or delete while the auto filter is turn on? catherine Excel Discussion (Misc queries) 1 July 4th 05 01:39 PM


All times are GMT +1. The time now is 08:58 AM.

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"