Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Comment Boxes


I have a spreadsheet I use at work to monitor incoming stock, it has two
spreadsheets "Inbound" and "Order No".

Inbound shows in cells :E6 to AE729 the quantity that is arriving by product
and by week
Order No shows in the same cells the order no of the quantity that is
arriving

To make it far easier to read I would like for each cell in "Inbound" where
the quantity is greater than 0 a comment box to be inserted automatically
with the value from the same cell in the "Order No" sheet

For example if INBOUND E15 is greater than 0 then a comment box is inserted
stating the value in ORDER NO E15

Also though I need the comment boxes removed if the cell equals zero at a
later date.

I hope this is clear and am greatful for all help

TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Comment Boxes

Try this in the sheetmodule of "Inbound"

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("E6:AE729"), Target) Is Nothing Then
With Target
On Error Resume Next
.Comment.Delete
If .Value 0 Then
.AddComment Text:=Sheets("Order No") _
.Range(Target.Address).Text
End If
On Error GoTo 0
End With
End If
End Sub


More info about comments you find here

David McRitchie
http://www.mvps.org/dmcritchie/excel/ccomment.htm

Or Debra's site
http://www.contextures.com/xlcomments03.html

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Rob Fenn" wrote in message ...

I have a spreadsheet I use at work to monitor incoming stock, it has two
spreadsheets "Inbound" and "Order No".

Inbound shows in cells :E6 to AE729 the quantity that is arriving by product
and by week
Order No shows in the same cells the order no of the quantity that is
arriving

To make it far easier to read I would like for each cell in "Inbound" where
the quantity is greater than 0 a comment box to be inserted automatically
with the value from the same cell in the "Order No" sheet

For example if INBOUND E15 is greater than 0 then a comment box is inserted
stating the value in ORDER NO E15

Also though I need the comment boxes removed if the cell equals zero at a
later date.

I hope this is clear and am greatful for all help

TIA




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Comment Boxes

You didn't like Tuesday's suggestions?

Rob Fenn wrote:

I have a spreadsheet I use at work to monitor incoming stock, it has two
spreadsheets "Inbound" and "Order No".

Inbound shows in cells :E6 to AE729 the quantity that is arriving by product
and by week
Order No shows in the same cells the order no of the quantity that is
arriving

To make it far easier to read I would like for each cell in "Inbound" where
the quantity is greater than 0 a comment box to be inserted automatically
with the value from the same cell in the "Order No" sheet

For example if INBOUND E15 is greater than 0 then a comment box is inserted
stating the value in ORDER NO E15

Also though I need the comment boxes removed if the cell equals zero at a
later date.

I hope this is clear and am greatful for all help

TIA


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Comment Boxes

Dave, Thankyou for your suggestions, for some reason I did not notice these
when I checked yesterday so reposted following Max's comments, I am
greatfull for the assistance from Ron and yourselves.

Thanks again
"Dave Peterson" wrote in message
...
You didn't like Tuesday's suggestions?

Rob Fenn wrote:

I have a spreadsheet I use at work to monitor incoming stock, it has two
spreadsheets "Inbound" and "Order No".

Inbound shows in cells :E6 to AE729 the quantity that is arriving by

product
and by week
Order No shows in the same cells the order no of the quantity that is
arriving

To make it far easier to read I would like for each cell in "Inbound"

where
the quantity is greater than 0 a comment box to be inserted

automatically
with the value from the same cell in the "Order No" sheet

For example if INBOUND E15 is greater than 0 then a comment box is

inserted
stating the value in ORDER NO E15

Also though I need the comment boxes removed if the cell equals zero at

a
later date.

I hope this is clear and am greatful for all help

TIA


--

Dave Peterson



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
Excel VBA and Comment boxes DCPan Excel Worksheet Functions 3 October 17th 08 12:40 AM
Comment Boxes RWS Excel Discussion (Misc queries) 1 November 3rd 05 01:26 PM
Comment Boxes Steved Excel Worksheet Functions 2 January 25th 05 09:55 PM
comment boxes w-domo Excel Discussion (Misc queries) 1 January 21st 05 01:30 PM
Comment Boxes John M[_5_] Excel Programming 3 November 13th 03 04:02 AM


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